From: Frans Meulenbroeks Date: Sun, 8 Jan 2012 18:34:08 +0000 (+0100) Subject: hwmon: (adt7475) fix checkpatch issues X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=99b8c83a7720da66c9054aa06f5c13c30555c17d;p=mv-sheeva.git hwmon: (adt7475) fix checkpatch issues fixed: WARNING: static const char * array should probably be static const char * const + static const char *names[] = { Signed-off-by: Frans Meulenbroeks Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c index 7dab3547fee..71e9ac4b849 100644 --- a/drivers/hwmon/adt7475.c +++ b/drivers/hwmon/adt7475.c @@ -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",