提交 a68abd32 编写于 作者: G Guenter Roeck 提交者: Guenter Roeck

hwmon: (wm8350-hwmon) Constify fixed string array

Constify fixed string array and make checkpatch happy.

Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 85ebfd3e
...@@ -34,7 +34,7 @@ static ssize_t show_name(struct device *dev, ...@@ -34,7 +34,7 @@ static ssize_t show_name(struct device *dev,
return sprintf(buf, "wm8350\n"); return sprintf(buf, "wm8350\n");
} }
static const char *input_names[] = { static const char * const input_names[] = {
[WM8350_AUXADC_USB] = "USB", [WM8350_AUXADC_USB] = "USB",
[WM8350_AUXADC_LINE] = "Line", [WM8350_AUXADC_LINE] = "Line",
[WM8350_AUXADC_BATT] = "Battery", [WM8350_AUXADC_BATT] = "Battery",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册