regulator: sky81452: Constify sky81452_reg_ops
authorAxel Lin <axel.lin@ingics.com>
Sat, 20 Apr 2019 07:20:00 +0000 (15:20 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 26 Apr 2019 09:38:26 +0000 (10:38 +0100)
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>
drivers/regulator/sky81452-regulator.c

index 6478606..eb2b609 100644 (file)
@@ -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,