OSDN Git Service

regulator: max77686: Make regulator_desc array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 27 Oct 2014 15:03:42 +0000 (16:03 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2014 00:38:34 +0000 (00:38 +0000)
The regulator_register() expects array of 'regulator_desc' to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77686.c

index ef1af2d..0d103ba 100644 (file)
@@ -350,7 +350,7 @@ static struct regulator_ops max77686_buck_dvs_ops = {
                        << MAX77686_OPMODE_BUCK234_SHIFT,               \
 }
 
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
        regulator_desc_ldo1_low(1),
        regulator_desc_ldo_low(2),
        regulator_desc_ldo(3),