summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 16:44:12 +0100
committerMark Brown <broonie@kernel.org>2014-10-28 01:02:30 +0100
commit2515b24c04ea5a1b770eee56ed1a946ab4350a42 (patch)
tree41848375583bc3de33002d2bb0a57688f897f89f /drivers
parentLinux 3.18-rc1 (diff)
downloadlinux-2515b24c04ea5a1b770eee56ed1a946ab4350a42.tar.xz
linux-2515b24c04ea5a1b770eee56ed1a946ab4350a42.zip
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')
-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),
{