regulator: rt5033: Constify rt5033_safe_ldo_ops and rt5033_buck_ops
authorAxel Lin <axel.lin@ingics.com>
Fri, 8 Feb 2019 12:42:47 +0000 (20:42 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 8 Feb 2019 13:06:05 +0000 (13:06 +0000)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rt5033-regulator.c

index 96d2c18e051a071de50a490181e88151a310bed8..639cbadc044a32414a18490afe38a0ad36926cb4 100644 (file)
 #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,