From: Krzysztof Kozlowski Date: Fri, 31 Oct 2014 16:04:14 +0000 (+0100) Subject: regulator: Staticize 'regulator_states' array X-Git-Tag: v3.19-rc1~178^2^2^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f32fa89ca9b2e1048d925af48bb0b1b3275d39d6;p=karo-tx-linux.git 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 Signed-off-by: Mark Brown --- 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", };