Skip to contentSkip to conversation

hwmon: (wm8350-hwmon) Constify fixed string array

PATCH Superseded Guenter Roeck 2 participants 2 messages Jan 24, 2012

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 32/79 hwmon: (wm8350-hwmon) Constify fixed string array

From: Guenter Roeck <[email protected]>

Constify fixed string array and make checkpatch happy.

---
 drivers/hwmon/wm8350-hwmon.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/wm8350-hwmon.c +1 -1
index 3ff67ed..b955756 100644
@@ -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",
Signature · 7 lines
1.7.3.1


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors