mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] regulator: tps6507x: Constify tps6507x_pmic_ops
@ 2019-03-28 12:02 Axel Lin
  2019-03-28 12:02 ` [PATCH 2/3] regulator: tps6507x: Remove unused *rdev[] from struct tps6507x_pmic Axel Lin
  2019-03-28 12:02 ` [PATCH 3/3] regulator: tps6507x: Convert to regulator core's simplified DT parsing code Axel Lin
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2019-03-28 12:02 UTC (permalink / raw)
  To: Mark Brown
  Cc: Anuj Aggarwal, Todd Fischer, Liam Girdwood, linux-kernel, Axel Lin

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>
---
 drivers/regulator/tps6507x-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index c179a3a221af..2b3064faaaf3 100644
--- 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,
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-28 12:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 12:02 [PATCH 1/3] regulator: tps6507x: Constify tps6507x_pmic_ops Axel Lin
2019-03-28 12:02 ` [PATCH 2/3] regulator: tps6507x: Remove unused *rdev[] from struct tps6507x_pmic Axel Lin
2019-03-28 12:02 ` [PATCH 3/3] regulator: tps6507x: Convert to regulator core's simplified DT parsing code Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®