summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/s2mpa01.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-27 16:44:14 +0100
committerMark Brown <broonie@kernel.org>2014-10-28 00:03:13 +0000
commit4b8e43f255b0ae093bb776f7415619bcd9eb7858 (patch)
treed6ee355251e36035a1ed0f488c3dbcb10e88f792 /drivers/regulator/s2mpa01.c
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
downloadblackbird-obmc-linux-4b8e43f255b0ae093bb776f7415619bcd9eb7858.tar.gz
blackbird-obmc-linux-4b8e43f255b0ae093bb776f7415619bcd9eb7858.zip
regulator: s2mpa01: 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/s2mpa01.c')
-rw-r--r--drivers/regulator/s2mpa01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/s2mpa01.c b/drivers/regulator/s2mpa01.c
index 4acefa6b462e..2263071414e2 100644
--- a/drivers/regulator/s2mpa01.c
+++ b/drivers/regulator/s2mpa01.c
@@ -298,7 +298,7 @@ static struct regulator_ops s2mpa01_buck_ops = {
.enable_mask = S2MPA01_ENABLE_MASK \
}
-static struct regulator_desc regulators[] = {
+static const struct regulator_desc regulators[] = {
regulator_desc_ldo(1, STEP_25_MV),
regulator_desc_ldo(2, STEP_50_MV),
regulator_desc_ldo(3, STEP_50_MV),
OpenPOWER on IntegriCloud