From: Axel Lin Date: Sat, 26 Jan 2019 03:39:01 +0000 (+0800) Subject: regulator: lp3972: Constify lp3972_ldo_ops and lp3972_dcdc_ops X-Git-Tag: v5.15~5598^2~58^2~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f75b4c5df000b1bd2f16a3ac4fd84b869b1a2d2f;p=platform%2Fkernel%2Flinux-starfive.git regulator: lp3972: Constify lp3972_ldo_ops and lp3972_dcdc_ops Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/lp3972.c b/drivers/regulator/lp3972.c index ff0c275..fb09819 100644 --- a/drivers/regulator/lp3972.c +++ b/drivers/regulator/lp3972.c @@ -305,7 +305,7 @@ static int lp3972_ldo_set_voltage_sel(struct regulator_dev *dev, return ret; } -static struct regulator_ops lp3972_ldo_ops = { +static const struct regulator_ops lp3972_ldo_ops = { .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3972_ldo_is_enabled, @@ -386,7 +386,7 @@ static int lp3972_dcdc_set_voltage_sel(struct regulator_dev *dev, LP3972_VOL_CHANGE_FLAG_MASK, 0); } -static struct regulator_ops lp3972_dcdc_ops = { +static const struct regulator_ops lp3972_dcdc_ops = { .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3972_dcdc_is_enabled,