Skip to contentSkip to conversation

hwmon: (adt7475) fix checkpatch issues

PATCH In review Frans Meulenbroeks 1 participant 1 message Jan 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 5/17 hwmon: (adt7475) fix checkpatch issues

fixed:
WARNING: static const char * array should probably be static const char * const #1235: FILE: adt7475.c:1235:
+ static const char *names[] = {

total: 0 errors, 11 warnings, 1618 lines checked

adt7475.c has style problems, please review.

If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.

---
 drivers/hwmon/adt7475.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/adt7475.c +1 -1
index b5fcd87..761cbf3 100644
@@ -1232,7 +1232,7 @@ static void adt7475_remove_files(struct i2c_client *client,
 static int adt7475_probe(struct i2c_client *client,
 			 const struct i2c_device_id *id)
 {
-	static const char *names[] = {
+	static const char * const names[] = {
 		[adt7473] = "ADT7473",
 		[adt7475] = "ADT7475",
 		[adt7476] = "ADT7476",
Signature · 7 lines
1.7.8.2


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