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>
Este cometimento está contido em:

cometido por
Mark Brown

ascendente
8005c49d9a
cometimento
71242b49a0
@@ -427,7 +427,7 @@ static int da9063_ldo_set_suspend_mode(struct regulator_dev *rdev, unsigned mode
|
||||
return regmap_field_write(regl->suspend_sleep, val);
|
||||
}
|
||||
|
||||
static struct regulator_ops da9063_buck_ops = {
|
||||
static const struct regulator_ops da9063_buck_ops = {
|
||||
.enable = regulator_enable_regmap,
|
||||
.disable = regulator_disable_regmap,
|
||||
.is_enabled = regulator_is_enabled_regmap,
|
||||
@@ -445,7 +445,7 @@ static struct regulator_ops da9063_buck_ops = {
|
||||
.set_suspend_mode = da9063_buck_set_suspend_mode,
|
||||
};
|
||||
|
||||
static struct regulator_ops da9063_ldo_ops = {
|
||||
static const struct regulator_ops da9063_ldo_ops = {
|
||||
.enable = regulator_enable_regmap,
|
||||
.disable = regulator_disable_regmap,
|
||||
.is_enabled = regulator_is_enabled_regmap,
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador