hwmon: (it87) Use is_visible for voltage sensors
authorGuenter Roeck <linux@roeck-us.net>
Sat, 30 Mar 2013 21:00:08 +0000 (14:00 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commit52929715634ad36782bd7018ab0bf59a6619c393
treecf09a6f45512deb0197828df298e9f7d9ea78b0a
parentc1e7a4ca6d7c58e30185d40e9ba82c7976950f32
hwmon: (it87) Use is_visible for voltage sensors

Simplify code and reduce object size by more than 300 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