Commit dd4cae9c authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: rt5033: Constify rt5033_safe_ldo_ops and rt5033_buck_ops

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 541d052d
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
#include <linux/mfd/rt5033-private.h> #include <linux/mfd/rt5033-private.h>
#include <linux/regulator/of_regulator.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, .is_enabled = regulator_is_enabled_regmap,
.enable = regulator_enable_regmap, .enable = regulator_enable_regmap,
.disable = regulator_disable_regmap, .disable = regulator_disable_regmap,
.list_voltage = regulator_list_voltage_linear, .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, .is_enabled = regulator_is_enabled_regmap,
.enable = regulator_enable_regmap, .enable = regulator_enable_regmap,
.disable = regulator_disable_regmap, .disable = regulator_disable_regmap,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment