mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
f85b520510
commit
94e44413cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue