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>
Этот коммит содержится в:

коммит произвёл
Mark Brown

родитель
8005c49d9a
Коммит
71242b49a0
@@ -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,
|
||||
|
Ссылка в новой задаче
Block a user