mirror of https://gitee.com/openkylin/linux.git
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: Guenter Roeck <linux@roeck-us.net> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
85ebfd3ef9
commit
a68abd32b9
|
@ -34,7 +34,7 @@ static ssize_t show_name(struct device *dev,
|
|||
return sprintf(buf, "wm8350\n");
|
||||
}
|
||||
|
||||
static const char *input_names[] = {
|
||||
static const char * const input_names[] = {
|
||||
[WM8350_AUXADC_USB] = "USB",
|
||||
[WM8350_AUXADC_LINE] = "Line",
|
||||
[WM8350_AUXADC_BATT] = "Battery",
|
||||
|
|
Loading…
Reference in New Issue