From a68abd32b911f9d3d0370c3992a770d4ea62496b Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Fri, 20 Jan 2012 09:43:54 -0800 Subject: hwmon: (wm8350-hwmon) Constify fixed string array Constify fixed string array and make checkpatch happy. Cc: Mark Brown Signed-off-by: Guenter Roeck Acked-by: Mark Brown --- drivers/hwmon/wm8350-hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/hwmon/wm8350-hwmon.c') diff --git a/drivers/hwmon/wm8350-hwmon.c b/drivers/hwmon/wm8350-hwmon.c index 3ff67edbdc44..b955756bdb42 100644 --- a/drivers/hwmon/wm8350-hwmon.c +++ b/drivers/hwmon/wm8350-hwmon.c @@ -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", -- cgit v1.2.3