hwmon: (adt7475) fix checkpatch issues
Subsystems (2)
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.
Signed-off-by Frans Meulenbroeks <[email protected]>
--- drivers/hwmon/adt7475.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/adt7475.c +1 -1
@@ -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