aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 11:44:12 -0400
committerMark Brown <broonie@kernel.org>2014-10-27 20:02:30 -0400
commit2515b24c04ea5a1b770eee56ed1a946ab4350a42 (patch)
tree41848375583bc3de33002d2bb0a57688f897f89f /drivers/regulator
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
regulator: max77693: Make regulator_desc array const
The regulator_register() expects array of 'regulator_desc' to be const. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77693.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c
index c67ff05fc1dd..177dd9d2ce67 100644
--- a/drivers/regulator/max77693.c
+++ b/drivers/regulator/max77693.c
@@ -139,7 +139,7 @@ static struct regulator_ops max77693_charger_ops = {
139 .enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \ 139 .enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \
140} 140}
141 141
142static struct regulator_desc regulators[] = { 142static const struct regulator_desc regulators[] = {
143 regulator_desc_esafeout(1), 143 regulator_desc_esafeout(1),
144 regulator_desc_esafeout(2), 144 regulator_desc_esafeout(2),
145 { 145 {