regulator: pca9450: Constify static regulator_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sun, 13 Sep 2020 08:41:13 +0000 (10:41 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 14 Sep 2020 13:24:39 +0000 (14:24 +0100)
commit72f2746c52e3fa6c0f6740df2d4fb70419533084
tree035cdbceb6ef101d125356d7f48713126b9f55a1
parent9032693e218e69a9527fd5d08c4ce5cdbe90820f
regulator: pca9450: Constify static regulator_ops

The only usages of these is to assign their address to the ops field in
the regulator_desc struct, which is a const pointer. Make them const to
allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200913084114.8851-5-rikard.falkeborn@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c