diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-10-31 17:04:14 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-31 18:13:38 +0000 |
commit | f32fa89ca9b2e1048d925af48bb0b1b3275d39d6 (patch) | |
tree | 23e5480cb7fa54ddbd3f72356df457a043418e6b | |
parent | 4eafec83aa9ea8eb21bd5c1c980debc623eea164 (diff) | |
download | linux-f32fa89ca9b2e1048d925af48bb0b1b3275d39d6.tar.bz2 |
regulator: Staticize 'regulator_states' array
The 'regulator_states' array is used only in this unit and it is not
exported. Make it static.
This also fixes following sparse warning:
drivers/regulator/of_regulator.c:22:12: warning: symbol 'regulator_states' was not declared. Should it be static?
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/of_regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/of_regulator.c b/drivers/regulator/of_regulator.c index f0d19fc9d5d5..36a1f5cc14e9 100644 --- a/drivers/regulator/of_regulator.c +++ b/drivers/regulator/of_regulator.c @@ -19,7 +19,7 @@ #include "internal.h" -const char *const regulator_states[PM_SUSPEND_MAX + 1] = { +static const char *const regulator_states[PM_SUSPEND_MAX + 1] = { [PM_SUSPEND_MEM] = "regulator-state-mem", [PM_SUSPEND_MAX] = "regulator-state-disk", }; |