mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-18 05:04:04 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ static int is_supply_enabled(struct regulator_dev *rdev)
|
|||
return read_field(hw, &info->enable);
|
||||
}
|
||||
|
||||
static struct regulator_ops regulator_ops = {
|
||||
static const struct regulator_ops regulator_ops = {
|
||||
.is_enabled = is_supply_enabled,
|
||||
.enable = enable_supply,
|
||||
.disable = disable_supply,
|
||||
|
|
Loading…
Add table
Reference in a new issue