aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 11:44:13 -0400
committerMark Brown <broonie@kernel.org>2014-10-27 20:02:54 -0400
commit6c4159a57a6a4867130fea26fe3f757ce5aaadb8 (patch)
tree775b4680899ff20055a0943968ff7c66a0718c7f /drivers/regulator
parentbf2753755fe0f6b77f73636a2fe3f39a84ab1ca8 (diff)
regulator: max77802: Make regulator_desc array const
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77802.c2
1 files changed, 1 insertions, 1 deletions
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 = {
472 .enable_mask = MAX77802_OPMODE_MASK, \ 472 .enable_mask = MAX77802_OPMODE_MASK, \
473} 473}
474 474
475static struct regulator_desc regulators[] = { 475static const struct regulator_desc regulators[] = {
476 regulator_77802_desc_16_buck(1), 476 regulator_77802_desc_16_buck(1),
477 regulator_77802_desc_234_buck(2), 477 regulator_77802_desc_234_buck(2),
478 regulator_77802_desc_234_buck(3), 478 regulator_77802_desc_234_buck(3),