diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-02-08 15:42:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-02-08 16:06:05 +0300 |
commit | dd4cae9ce661d3c6c7643bba2c19200cb7dd5339 (patch) | |
tree | cb226b35dbeda3ac0c9cb74975dde8401ba40398 /drivers/regulator | |
parent | 541d052d721506549774ab780a2709e4ff8ca79b (diff) | |
download | linux-dd4cae9ce661d3c6c7643bba2c19200cb7dd5339.tar.xz |
regulator: rt5033: Constify rt5033_safe_ldo_ops and rt5033_buck_ops
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/rt5033-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/rt5033-regulator.c b/drivers/regulator/rt5033-regulator.c index 96d2c18e051a..639cbadc044a 100644 --- a/drivers/regulator/rt5033-regulator.c +++ b/drivers/regulator/rt5033-regulator.c @@ -16,14 +16,14 @@ #include <linux/mfd/rt5033-private.h> #include <linux/regulator/of_regulator.h> -static struct regulator_ops rt5033_safe_ldo_ops = { +static const struct regulator_ops rt5033_safe_ldo_ops = { .is_enabled = regulator_is_enabled_regmap, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .list_voltage = regulator_list_voltage_linear, }; -static struct regulator_ops rt5033_buck_ops = { +static const struct regulator_ops rt5033_buck_ops = { .is_enabled = regulator_is_enabled_regmap, .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, |