From: Axel Lin Date: Sat, 26 Jan 2019 03:39:00 +0000 (+0800) Subject: regulator: lp3971: Constify lp3971_ldo_ops and lp3971_dcdc_ops X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=93b84ea5298904a06fc9ca664225ec2e6944adbf;p=openwrt%2Fstaging%2Fblogic.git regulator: lp3971: Constify lp3971_ldo_ops and lp3971_dcdc_ops Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/lp3971.c b/drivers/regulator/lp3971.c index 204b5c5270e0..9e45112658ba 100644 --- a/drivers/regulator/lp3971.c +++ b/drivers/regulator/lp3971.c @@ -159,7 +159,7 @@ static int lp3971_ldo_set_voltage_sel(struct regulator_dev *dev, selector << LDO_VOL_CONTR_SHIFT(ldo)); } -static struct regulator_ops lp3971_ldo_ops = { +static const struct regulator_ops lp3971_ldo_ops = { .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3971_ldo_is_enabled, @@ -233,7 +233,7 @@ static int lp3971_dcdc_set_voltage_sel(struct regulator_dev *dev, 0 << BUCK_VOL_CHANGE_SHIFT(buck)); } -static struct regulator_ops lp3971_dcdc_ops = { +static const struct regulator_ops lp3971_dcdc_ops = { .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .is_enabled = lp3971_dcdc_is_enabled,