提交 f32fa89c 编写于 作者: K Krzysztof Kozlowski 提交者: Mark Brown

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: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 4eafec83
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include "internal.h" #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_MEM] = "regulator-state-mem",
[PM_SUSPEND_MAX] = "regulator-state-disk", [PM_SUSPEND_MAX] = "regulator-state-disk",
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册