diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-09-06 08:05:43 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2013-09-06 08:05:43 -0400 |
commit | 94e44413cdda7b1b838a4c508a4eca0cdd5e7a18 (patch) | |
tree | 46b83d252d319583f837dc05d93300a04c5d4792 /drivers/hwmon | |
parent | f85b520510ed8b805b21b98dcedaf896caa0dae7 (diff) |
hwmon: (emc6w201) Do not declare enum variable
Fix the following smatch warning:
emc6w201.c:52:26: warning: symbol 'subfeature' was not declared.
Should it be static?
'enum { } subtype' declares an enum as (global) variable which we don't want.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/emc6w201.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/emc6w201.c b/drivers/hwmon/emc6w201.c index 936898f82f94..82e661e8241b 100644 --- a/drivers/hwmon/emc6w201.c +++ b/drivers/hwmon/emc6w201.c | |||
@@ -49,7 +49,7 @@ static const unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; | |||
49 | #define EMC6W201_REG_TEMP_HIGH(nr) (0x57 + (nr) * 2) | 49 | #define EMC6W201_REG_TEMP_HIGH(nr) (0x57 + (nr) * 2) |
50 | #define EMC6W201_REG_FAN_MIN(nr) (0x62 + (nr) * 2) | 50 | #define EMC6W201_REG_FAN_MIN(nr) (0x62 + (nr) * 2) |
51 | 51 | ||
52 | enum { input, min, max } subfeature; | 52 | enum subfeature { input, min, max }; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * Per-device data | 55 | * Per-device data |