From: Krzysztof Kozlowski Date: Mon, 27 Oct 2014 15:44:13 +0000 (+0100) Subject: regulator: max77802: Make regulator_desc array const X-Git-Tag: v3.19-rc1~178^2~2^4~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6c4159a57a6a4867130fea26fe3f757ce5aaadb8;p=karo-tx-linux.git regulator: max77802: 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/max77802.c b/drivers/regulator/max77802.c index 7718c8aa0d7c..0464afa1585d 100644 --- a/drivers/regulator/max77802.c +++ b/drivers/regulator/max77802.c @@ -472,7 +472,7 @@ static struct regulator_ops max77802_buck_dvs_ops = { .enable_mask = MAX77802_OPMODE_MASK, \ } -static struct regulator_desc regulators[] = { +static const struct regulator_desc regulators[] = { regulator_77802_desc_16_buck(1), regulator_77802_desc_234_buck(2), regulator_77802_desc_234_buck(3),