projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e488c0
)
regulator: tps6507x: Constify tps6507x_pmic_ops
author
Axel Lin
<axel.lin@ingics.com>
Thu, 28 Mar 2019 12:02:23 +0000
(20:02 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 1 Apr 2019 08:17:56 +0000
(15:17 +0700)
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>
drivers/regulator/tps6507x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/tps6507x-regulator.c
b/drivers/regulator/tps6507x-regulator.c
index c179a3a221af3347d83fb5cafad45099ba199b18..2b3064faaaf393f938c82d15b56255893659c243 100644
(file)
--- a/
drivers/regulator/tps6507x-regulator.c
+++ b/
drivers/regulator/tps6507x-regulator.c
@@
-349,7
+349,7
@@
static int tps6507x_pmic_set_voltage_sel(struct regulator_dev *dev,
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,
.enable = tps6507x_pmic_enable,
.disable = tps6507x_pmic_disable,