summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adt7475.c
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2012-01-08 22:34:08 +0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-19 05:26:37 +0400
commit99b8c83a7720da66c9054aa06f5c13c30555c17d (patch)
tree59109505e1106554479f9d62740578247ac6474b /drivers/hwmon/adt7475.c
parentb2ae8f87f48d40b720ec011499e99bdf5c519c82 (diff)
downloadlinux-99b8c83a7720da66c9054aa06f5c13c30555c17d.tar.xz
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 <fransmeulenbroeks@gmail.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/adt7475.c')
-rw-r--r--drivers/hwmon/adt7475.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
index 7dab3547fee5..71e9ac4b8494 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",