From: Axel Lin Date: Tue, 7 Jul 2015 11:21:44 +0000 (+0800) Subject: regulator: ltc3589: Constify ltc3589_reg_defaults X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ec8677267f4ef126275b2e0a429211b256f1a94a;p=openwrt%2Fstaging%2Fblogic.git regulator: ltc3589: Constify ltc3589_reg_defaults ltc3589_reg_defaults[] is not modified after initialized, so make it const. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- 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 },