summaryrefslogtreecommitdiff
path: root/drivers/regulator/max77693.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 18:44:12 +0300
committerMark Brown <broonie@kernel.org>2014-10-28 03:02:30 +0300
commit2515b24c04ea5a1b770eee56ed1a946ab4350a42 (patch)
tree41848375583bc3de33002d2bb0a57688f897f89f /drivers/regulator/max77693.c
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadlinux-2515b24c04ea5a1b770eee56ed1a946ab4350a42.tar.xz
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/max77693.c')
-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 = {
.enable_mask = SAFEOUT_CTRL_ENSAFEOUT##_num##_MASK , \
}
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
regulator_desc_esafeout(1),
regulator_desc_esafeout(2),
{