diff options
author | Axel Lin <axel.lin@ingics.com> | 2019-05-24 12:02:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-24 14:04:23 +0200 |
commit | 0a33d4feea748399c9341ff054c5f29c98393d35 (patch) | |
tree | ce8f2198a8a5d265fd6b16f01c5d521550cc78ce /drivers/regulator/slg51000-regulator.c | |
parent | regulator: max77650: Move max77651_SBB1_desc's declaration down (diff) | |
download | linux-0a33d4feea748399c9341ff054c5f29c98393d35.tar.xz linux-0a33d4feea748399c9341ff054c5f29c98393d35.zip |
regulator: slg51000: Constify slg51000_regl_ops and slg51000_switch_ops
These regulator_ops variables never need to be modified, make them const so
compiler can put them to .rodata.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/slg51000-regulator.c')
-rw-r--r-- | drivers/regulator/slg51000-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/slg51000-regulator.c b/drivers/regulator/slg51000-regulator.c index 12e21d43030b..a06a18f220e0 100644 --- a/drivers/regulator/slg51000-regulator.c +++ b/drivers/regulator/slg51000-regulator.c @@ -183,7 +183,7 @@ static const struct regmap_config slg51000_regmap_config = { .volatile_table = &slg51000_volatile_table, }; -static struct regulator_ops slg51000_regl_ops = { +static const struct regulator_ops slg51000_regl_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, @@ -193,7 +193,7 @@ static struct regulator_ops slg51000_regl_ops = { .set_voltage_sel = regulator_set_voltage_sel_regmap, }; -static struct regulator_ops slg51000_switch_ops = { +static const struct regulator_ops slg51000_switch_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, .is_enabled = regulator_is_enabled_regmap, |