summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/sky81452-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2019-04-20 09:20:00 +0200
committerMark Brown <broonie@kernel.org>2019-04-26 11:38:26 +0200
commitc7e3ddd129d5181e1581dd5a1af4e8714a8650ad (patch)
tree17cb76cea5b737a8e9773fe62c0f0289492232d0 /drivers/regulator/sky81452-regulator.c
parentregulator: sy8106a: Get rid of struct sy8106a (diff)
downloadlinux-c7e3ddd129d5181e1581dd5a1af4e8714a8650ad.tar.xz
linux-c7e3ddd129d5181e1581dd5a1af4e8714a8650ad.zip
regulator: sky81452: Constify sky81452_reg_ops
sky81452_reg_ops is never changed, make it const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/sky81452-regulator.c')
-rw-r--r--drivers/regulator/sky81452-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/sky81452-regulator.c b/drivers/regulator/sky81452-regulator.c
index 647860611916..eb2b60968a1a 100644
--- a/drivers/regulator/sky81452-regulator.c
+++ b/drivers/regulator/sky81452-regulator.c
@@ -34,7 +34,7 @@
#define SKY81452_LEN 0x40
#define SKY81452_LOUT 0x1F
-static struct regulator_ops sky81452_reg_ops = {
+static const struct regulator_ops sky81452_reg_ops = {
.list_voltage = regulator_list_voltage_linear_range,
.map_voltage = regulator_map_voltage_linear_range,
.get_voltage_sel = regulator_get_voltage_sel_regmap,