All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: ltc3589: Constify ltc3589_reg_defaults
@ 2015-07-07 11:21 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2015-07-07 11:21 UTC (permalink / raw)
  To: Mark Brown; +Cc: Philipp Zabel, Liam Girdwood, linux-kernel

ltc3589_reg_defaults[] is not modified after initialized, so make it const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/ltc3589.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c
index 0ce8e4e..c31dfa8 100644
--- a/drivers/regulator/ltc3589.c
+++ b/drivers/regulator/ltc3589.c
@@ -378,7 +378,7 @@ static bool ltc3589_volatile_reg(struct device *dev, unsigned int reg)
 	return false;
 }
 
-static struct reg_default ltc3589_reg_defaults[] = {
+static const struct reg_default ltc3589_reg_defaults[] = {
 	{ LTC3589_SCR1,   0x00 },
 	{ LTC3589_OVEN,   0x00 },
 	{ LTC3589_SCR2,   0x00 },
-- 
2.1.0




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-07 11:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 11:21 [PATCH] regulator: ltc3589: Constify ltc3589_reg_defaults Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.