Skip to content

Commit

Permalink
hwmon: (emc6w201) Do not declare enum variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guenter Roeck authored and Jean Delvare committed Sep 6, 2013
1 parent f85b520 commit 94e4441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/emc6w201.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94e4441

Please sign in to comment.