regulator: lp873x: Constify lp873x_buck01_ops and lp873x_ldo01_ops
authorAxel Lin <axel.lin@ingics.com>
Sat, 26 Jan 2019 03:39:03 +0000 (11:39 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:20:41 +0000 (12:20 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp873x-regulator.c

index 70e3df653381c36262ee180e3c773ad10eccf1ff..2ec5e833c37954e32796d7461d15926e87fae593 100644 (file)
@@ -146,7 +146,7 @@ static int lp873x_buck_get_current_limit(struct regulator_dev *rdev)
 }
 
 /* Operations permitted on BUCK0, BUCK1 */
-static struct regulator_ops lp873x_buck01_ops = {
+static const struct regulator_ops lp873x_buck01_ops = {
        .is_enabled             = regulator_is_enabled_regmap,
        .enable                 = regulator_enable_regmap,
        .disable                = regulator_disable_regmap,
@@ -161,7 +161,7 @@ static struct regulator_ops lp873x_buck01_ops = {
 };
 
 /* Operations permitted on LDO0 and LDO1 */
-static struct regulator_ops lp873x_ldo01_ops = {
+static const struct regulator_ops lp873x_ldo01_ops = {
        .is_enabled             = regulator_is_enabled_regmap,
        .enable                 = regulator_enable_regmap,
        .disable                = regulator_disable_regmap,