summaryrefslogtreecommitdiff
path: root/drivers/regulator/max77802.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 16:44:13 +0100
committerMark Brown <broonie@kernel.org>2014-10-28 00:02:54 +0000
commit6c4159a57a6a4867130fea26fe3f757ce5aaadb8 (patch)
tree775b4680899ff20055a0943968ff7c66a0718c7f /drivers/regulator/max77802.c
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/max77802.c')
-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 = {
.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),