diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-12-19 16:07:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-23 00:59:57 +0100 |
commit | 71242b49a075a580980d9b7845f2c25450018601 (patch) | |
tree | fe1740e3b97ae2e8cce5c0eed87cce0143fd2466 /drivers/regulator/da9211-regulator.c | |
parent | Linux 4.4-rc1 (diff) | |
download | linux-71242b49a075a580980d9b7845f2c25450018601.tar.xz linux-71242b49a075a580980d9b7845f2c25450018601.zip |
regulator: da9*: constify regulator_ops structures
The regulator_ops structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/da9211-regulator.c')
-rw-r--r-- | drivers/regulator/da9211-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-regulator.c index 04ef65b7eb3d..236abf473db5 100644 --- a/drivers/regulator/da9211-regulator.c +++ b/drivers/regulator/da9211-regulator.c @@ -219,7 +219,7 @@ static int da9211_get_current_limit(struct regulator_dev *rdev) return current_limits[data]; } -static struct regulator_ops da9211_buck_ops = { +static const struct regulator_ops da9211_buck_ops = { .get_mode = da9211_buck_get_mode, .set_mode = da9211_buck_set_mode, .enable = regulator_enable_regmap, |