From: Guenter Roeck Date: Fri, 6 Sep 2013 12:05:43 +0000 (+0200) Subject: hwmon: (emc6w201) Do not declare enum variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94e44413cdda7b1b838a4c508a4eca0cdd5e7a18;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jean Delvare --- 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 }; #define EMC6W201_REG_TEMP_HIGH(nr) (0x57 + (nr) * 2) #define EMC6W201_REG_FAN_MIN(nr) (0x62 + (nr) * 2) -enum { input, min, max } subfeature; +enum subfeature { input, min, max }; /* * Per-device data