]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regulator: dummy: Make regulator_desc array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 27 Oct 2014 15:44:11 +0000 (16:44 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2014 00:01:44 +0000 (00:01 +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/dummy.c

index 2436db9e2ca35f60875ab56cc825050c0d6a3ff2..7aef9e4c6fbf60d47bf7812918d48042c6045637 100644 (file)
@@ -33,7 +33,7 @@ static struct regulator_init_data dummy_initdata = {
 
 static struct regulator_ops dummy_ops;
 
-static struct regulator_desc dummy_desc = {
+static const struct regulator_desc dummy_desc = {
        .name = "regulator-dummy",
        .id = -1,
        .type = REGULATOR_VOLTAGE,