From: Krzysztof Kozlowski Date: Mon, 27 Oct 2014 15:44:11 +0000 (+0100) Subject: regulator: dummy: Make regulator_desc array const X-Git-Tag: v3.19-rc1~178^2~3^4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e1326eff80bffc43ef766c0262d1ce9375c2f610;p=karo-tx-linux.git regulator: dummy: Make regulator_desc array const The regulator_register() expects array of 'regulator_desc' to be const. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 2436db9e2ca3..7aef9e4c6fbf 100644 --- a/drivers/regulator/dummy.c +++ b/drivers/regulator/dummy.c @@ -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,