regulator: max77693: Make regulator_desc array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 27 Oct 2014 15:44:12 +0000 (16:44 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2014 00:02:30 +0000 (00:02 +0000)
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>
drivers/regulator/max77693.c

index c67ff05fc1dd1354cd0a72601f31b407f99638ad..177dd9d2ce6778359828f07578e773200178ae20 100644 (file)
@@ -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),
        {