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>
This commit is contained in:

committato da
Mark Brown

parent
8005c49d9a
commit
71242b49a0
@@ -324,7 +324,7 @@ static int da9055_suspend_disable(struct regulator_dev *rdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct regulator_ops da9055_buck_ops = {
|
||||
static const struct regulator_ops da9055_buck_ops = {
|
||||
.get_mode = da9055_buck_get_mode,
|
||||
.set_mode = da9055_buck_set_mode,
|
||||
|
||||
@@ -345,7 +345,7 @@ static struct regulator_ops da9055_buck_ops = {
|
||||
.set_suspend_mode = da9055_buck_set_mode,
|
||||
};
|
||||
|
||||
static struct regulator_ops da9055_ldo_ops = {
|
||||
static const struct regulator_ops da9055_ldo_ops = {
|
||||
.get_mode = da9055_ldo_get_mode,
|
||||
.set_mode = da9055_ldo_set_mode,
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user