mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
regulator: ab8500-ext: Constify ab8500_ext_regulator_ops
ab8500_ext_regulator_ops never need to be modified, make it const so compiler can put it to .rodata. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
48cb9737ed
commit
8e5be4f7e1
@ -718,7 +718,7 @@ static int ab8500_ext_list_voltage(struct regulator_dev *rdev,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static struct regulator_ops ab8500_ext_regulator_ops = {
|
||||
static const struct regulator_ops ab8500_ext_regulator_ops = {
|
||||
.enable = ab8500_ext_regulator_enable,
|
||||
.disable = ab8500_ext_regulator_disable,
|
||||
.is_enabled = ab8500_ext_regulator_is_enabled,
|
||||
|
Loading…
Reference in New Issue
Block a user