hwmon: (it87) Use is_visible for fan attributes
authorGuenter Roeck <linux@roeck-us.net>
Sat, 30 Mar 2013 21:51:20 +0000 (14:51 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commit9a70ee814d7093a2806e94b99ce12b8d35c6102e
treebde3cfff4a46c2aef1caa8eb5e87bea6b2623a60
parent87533770be36ecea55b86fa377ba4232d720df23
hwmon: (it87) Use is_visible for fan attributes

Simplify code and reduce object size by almost 500 bytes on x86_64.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c