regulator: tps6507x: Constify tps6507x_pmic_ops
The tps6507x_pmic_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:
Родитель
9e488c0a59
Коммит
646e268e66
|
@ -349,7 +349,7 @@ static int tps6507x_pmic_set_voltage_sel(struct regulator_dev *dev,
|
||||||
return tps6507x_pmic_reg_write(tps, reg, data);
|
return tps6507x_pmic_reg_write(tps, reg, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct regulator_ops tps6507x_pmic_ops = {
|
static const struct regulator_ops tps6507x_pmic_ops = {
|
||||||
.is_enabled = tps6507x_pmic_is_enabled,
|
.is_enabled = tps6507x_pmic_is_enabled,
|
||||||
.enable = tps6507x_pmic_enable,
|
.enable = tps6507x_pmic_enable,
|
||||||
.disable = tps6507x_pmic_disable,
|
.disable = tps6507x_pmic_disable,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче