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

regulator: twl6030: 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
606640bb 4a43870a

+4 -4
+4 -4
drivers/regulator/twl6030-regulator.c
··· 244 244 return -ENODEV; 245 245 } 246 246 247 - static struct regulator_ops twl6030coresmps_ops = { 247 + static const struct regulator_ops twl6030coresmps_ops = { 248 248 .set_voltage = twl6030coresmps_set_voltage, 249 249 .get_voltage = twl6030coresmps_get_voltage, 250 250 }; ··· 266 266 return vsel; 267 267 } 268 268 269 - static struct regulator_ops twl6030ldo_ops = { 269 + static const struct regulator_ops twl6030ldo_ops = { 270 270 .list_voltage = regulator_list_voltage_linear_range, 271 271 272 272 .set_voltage_sel = twl6030ldo_set_voltage_sel, ··· 281 281 .get_status = twl6030reg_get_status, 282 282 }; 283 283 284 - static struct regulator_ops twl6030fixed_ops = { 284 + static const struct regulator_ops twl6030fixed_ops = { 285 285 .list_voltage = regulator_list_voltage_linear, 286 286 287 287 .enable = twl6030reg_enable, ··· 472 472 return twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS); 473 473 } 474 474 475 - static struct regulator_ops twlsmps_ops = { 475 + static const struct regulator_ops twlsmps_ops = { 476 476 .list_voltage = twl6030smps_list_voltage, 477 477 .map_voltage = twl6030smps_map_voltage, 478 478