summaryrefslogtreecommitdiff
path: root/drivers/regulator/da9210-regulator.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-19 16:07:09 +0100
committerMark Brown <broonie@kernel.org>2015-12-22 23:59:57 +0000
commit71242b49a075a580980d9b7845f2c25450018601 (patch)
treefe1740e3b97ae2e8cce5c0eed87cce0143fd2466 /drivers/regulator/da9210-regulator.c
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadlwn-71242b49a075a580980d9b7845f2c25450018601.tar.gz
lwn-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/da9210-regulator.c')
-rw-r--r--drivers/regulator/da9210-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da9210-regulator.c
index b3517830edb6..8b3cc9f0cd64 100644
--- a/drivers/regulator/da9210-regulator.c
+++ b/drivers/regulator/da9210-regulator.c
@@ -46,7 +46,7 @@ static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA,
int max_uA);
static int da9210_get_current_limit(struct regulator_dev *rdev);
-static struct regulator_ops da9210_buck_ops = {
+static const struct regulator_ops da9210_buck_ops = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,