diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-10-27 11:44:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-27 20:03:13 -0400 |
commit | 4b8e43f255b0ae093bb776f7415619bcd9eb7858 (patch) | |
tree | d6ee355251e36035a1ed0f488c3dbcb10e88f792 /drivers/regulator | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
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')
-rw-r--r-- | drivers/regulator/s2mpa01.c | 2 |
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 = { | |||
298 | .enable_mask = S2MPA01_ENABLE_MASK \ | 298 | .enable_mask = S2MPA01_ENABLE_MASK \ |
299 | } | 299 | } |
300 | 300 | ||
301 | static struct regulator_desc regulators[] = { | 301 | static const struct regulator_desc regulators[] = { |
302 | regulator_desc_ldo(1, STEP_25_MV), | 302 | regulator_desc_ldo(1, STEP_25_MV), |
303 | regulator_desc_ldo(2, STEP_50_MV), | 303 | regulator_desc_ldo(2, STEP_50_MV), |
304 | regulator_desc_ldo(3, STEP_50_MV), | 304 | regulator_desc_ldo(3, STEP_50_MV), |