diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-01-28 17:19:21 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-28 18:30:58 +0300 |
commit | 1dceee5eb320e76c996ee7e61795299fe40aa4cc (patch) | |
tree | c943e0ffc9f72f14730e075038ac720e11be02ef /drivers/regulator/isl6271a-regulator.c | |
parent | a6e58299e3dd83be71421248f268897b73666aa2 (diff) |
regulator: isl6271a: Constify isl_core_ops and isl_fixed_ops
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/isl6271a-regulator.c')
-rw-r--r-- | drivers/regulator/isl6271a-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/isl6271a-regulator.c b/drivers/regulator/isl6271a-regulator.c index ae29c8773057..6f28bba81d13 100644 --- a/drivers/regulator/isl6271a-regulator.c +++ b/drivers/regulator/isl6271a-regulator.c @@ -65,14 +65,14 @@ static int isl6271a_set_voltage_sel(struct regulator_dev *dev, return err; } -static struct regulator_ops isl_core_ops = { +static const struct regulator_ops isl_core_ops = { .get_voltage_sel = isl6271a_get_voltage_sel, .set_voltage_sel = isl6271a_set_voltage_sel, .list_voltage = regulator_list_voltage_linear, .map_voltage = regulator_map_voltage_linear, }; -static struct regulator_ops isl_fixed_ops = { +static const struct regulator_ops isl_fixed_ops = { .list_voltage = regulator_list_voltage_linear, }; |