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

regulator: max77693: Constify regulator_ops

Static struct regulator_ops is not modified so can be made const for
code safeness.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
a08904fd 0f6ce809

+1 -1
+1 -1
drivers/regulator/max77693-regulator.c
··· 150 150 .set_voltage_sel = regulator_set_voltage_sel_regmap, 151 151 }; 152 152 153 - static struct regulator_ops max77693_charger_ops = { 153 + static const struct regulator_ops max77693_charger_ops = { 154 154 .is_enabled = regulator_is_enabled_regmap, 155 155 .enable = regulator_enable_regmap, 156 156 .disable = regulator_disable_regmap,