regulator: tps6524x: Constify regulator_ops
The regulator_ops is never changed, make it const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7cfcecfb82
commit
357db0279a
|
@ -565,7 +565,7 @@ static int is_supply_enabled(struct regulator_dev *rdev)
|
||||||
return read_field(hw, &info->enable);
|
return read_field(hw, &info->enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct regulator_ops regulator_ops = {
|
static const struct regulator_ops regulator_ops = {
|
||||||
.is_enabled = is_supply_enabled,
|
.is_enabled = is_supply_enabled,
|
||||||
.enable = enable_supply,
|
.enable = enable_supply,
|
||||||
.disable = disable_supply,
|
.disable = disable_supply,
|
||||||
|
|
Loading…
Reference in New Issue