hwmon: (wm8350-hwmon) Constify fixed string array
authorGuenter Roeck <linux@roeck-us.net>
Fri, 20 Jan 2012 17:43:54 +0000 (09:43 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:27:00 +0000 (18:27 -0700)
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>
drivers/hwmon/wm8350-hwmon.c

index 3ff67edbdc44af02a7d0553dd2d74530cc00ca6f..b955756bdb4221b87f6c7b5be4a45f7b7d6920d5 100644 (file)
@@ -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",