diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-10-27 11:44:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-27 20:01:44 -0400 |
commit | e1326eff80bffc43ef766c0262d1ce9375c2f610 (patch) | |
tree | db07ab84efd46235d137bdc82b3b7ae58ff1e1c1 | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
regulator: dummy: 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>
-rw-r--r-- | drivers/regulator/dummy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/dummy.c b/drivers/regulator/dummy.c index 2436db9e2ca3..7aef9e4c6fbf 100644 --- a/drivers/regulator/dummy.c +++ b/drivers/regulator/dummy.c | |||
@@ -33,7 +33,7 @@ static struct regulator_init_data dummy_initdata = { | |||
33 | 33 | ||
34 | static struct regulator_ops dummy_ops; | 34 | static struct regulator_ops dummy_ops; |
35 | 35 | ||
36 | static struct regulator_desc dummy_desc = { | 36 | static const struct regulator_desc dummy_desc = { |
37 | .name = "regulator-dummy", | 37 | .name = "regulator-dummy", |
38 | .id = -1, | 38 | .id = -1, |
39 | .type = REGULATOR_VOLTAGE, | 39 | .type = REGULATOR_VOLTAGE, |