diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-10-27 18:44:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-28 03:03:13 +0300 |
commit | 4b8e43f255b0ae093bb776f7415619bcd9eb7858 (patch) | |
tree | d6ee355251e36035a1ed0f488c3dbcb10e88f792 /drivers/regulator | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) | |
download | linux-4b8e43f255b0ae093bb776f7415619bcd9eb7858.tar.xz |
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 = { .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), |