regulator: lp3972: Constify lp3972_ldo_ops and lp3972_dcdc_ops
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
93b84ea529
commit
f75b4c5df0
|
@ -305,7 +305,7 @@ static int lp3972_ldo_set_voltage_sel(struct regulator_dev *dev,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct regulator_ops lp3972_ldo_ops = {
|
static const struct regulator_ops lp3972_ldo_ops = {
|
||||||
.list_voltage = regulator_list_voltage_table,
|
.list_voltage = regulator_list_voltage_table,
|
||||||
.map_voltage = regulator_map_voltage_ascend,
|
.map_voltage = regulator_map_voltage_ascend,
|
||||||
.is_enabled = lp3972_ldo_is_enabled,
|
.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);
|
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,
|
.list_voltage = regulator_list_voltage_table,
|
||||||
.map_voltage = regulator_map_voltage_ascend,
|
.map_voltage = regulator_map_voltage_ascend,
|
||||||
.is_enabled = lp3972_dcdc_is_enabled,
|
.is_enabled = lp3972_dcdc_is_enabled,
|
||||||
|
|
Loading…
Reference in New Issue