From: Axel Lin Date: Fri, 8 Feb 2019 12:42:47 +0000 (+0800) Subject: regulator: rt5033: Constify rt5033_safe_ldo_ops and rt5033_buck_ops X-Git-Tag: v5.1-rc1~182^2^2~64 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dd4cae9ce661d3c6c7643bba2c19200cb7dd5339;p=linux-2.6-block.git regulator: rt5033: Constify rt5033_safe_ldo_ops and rt5033_buck_ops Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- 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 #include -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,