diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-10-27 16:44:13 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-28 01:02:54 +0100 |
commit | 6c4159a57a6a4867130fea26fe3f757ce5aaadb8 (patch) | |
tree | 775b4680899ff20055a0943968ff7c66a0718c7f /drivers/regulator | |
parent | regulator: max77802: fix a test in max77802_set_suspend_mode() (diff) | |
download | linux-6c4159a57a6a4867130fea26fe3f757ce5aaadb8.tar.xz linux-6c4159a57a6a4867130fea26fe3f757ce5aaadb8.zip |
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.c | 2 |
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), |