Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: bd9571mwv: Constify regulator_ops

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Axel Lin and committed by
Mark Brown
e109e711 704c5c01

+4 -4
+4 -4
drivers/regulator/bd9571mwv-regulator.c
··· 100 100 } 101 101 102 102 /* Operations permitted on AVS voltage regulator */ 103 - static struct regulator_ops avs_ops = { 103 + static const struct regulator_ops avs_ops = { 104 104 .set_voltage_sel = bd9571mwv_avs_set_voltage_sel_regmap, 105 105 .map_voltage = regulator_map_voltage_linear, 106 106 .get_voltage_sel = bd9571mwv_avs_get_voltage_sel_regmap, ··· 108 108 }; 109 109 110 110 /* Operations permitted on voltage regulators */ 111 - static struct regulator_ops reg_ops = { 111 + static const struct regulator_ops reg_ops = { 112 112 .set_voltage_sel = bd9571mwv_reg_set_voltage_sel_regmap, 113 113 .map_voltage = regulator_map_voltage_linear, 114 114 .get_voltage_sel = regulator_get_voltage_sel_regmap, ··· 116 116 }; 117 117 118 118 /* Operations permitted on voltage monitors */ 119 - static struct regulator_ops vid_ops = { 119 + static const struct regulator_ops vid_ops = { 120 120 .map_voltage = regulator_map_voltage_linear, 121 121 .get_voltage_sel = regulator_get_voltage_sel_regmap, 122 122 .list_voltage = regulator_list_voltage_linear, 123 123 }; 124 124 125 - static struct regulator_desc regulators[] = { 125 + static const struct regulator_desc regulators[] = { 126 126 BD9571MWV_REG("VD09", "vd09", VD09, avs_ops, 0, 0x7f, 127 127 0x80, 600000, 10000, 0x3c), 128 128 BD9571MWV_REG("VD18", "vd18", VD18, vid_ops, BD9571MWV_VD18_VID, 0xf,