hwmon: (it87) Use is_visible for pwm attributes
authorGuenter Roeck <linux@roeck-us.net>
Sat, 30 Mar 2013 22:02:12 +0000 (15:02 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commit5c3912616d37bcc292ae09a8be7f1a58d54f19f9
treee0bb979744371108d43996bea1d3d19b175fdad0
parent9a70ee814d7093a2806e94b99ce12b8d35c6102e
hwmon: (it87) Use is_visible for pwm attributes

Simplify code and reduce object size by about 250 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