summaryrefslogtreecommitdiff
path: root/drivers/regulator/ltc3589.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-07-07 19:21:44 +0800
committerMark Brown <broonie@kernel.org>2015-07-07 14:24:17 +0100
commitec8677267f4ef126275b2e0a429211b256f1a94a (patch)
tree1ea826715af245c0d14e0170a99bb86c36eae445 /drivers/regulator/ltc3589.c
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754 (diff)
regulator: ltc3589: Constify ltc3589_reg_defaults
ltc3589_reg_defaults[] is not modified after initialized, so make it const. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/ltc3589.c')
-rw-r--r--drivers/regulator/ltc3589.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/ltc3589.c b/drivers/regulator/ltc3589.c
index 0ce8e4e0fa73..c31dfa8805d9 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 },