hwmon: (it87) Use single group and is_visible for miscellaneous attributes
authorGuenter Roeck <linux@roeck-us.net>
Sat, 30 Mar 2013 22:47:21 +0000 (15:47 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commitd376684880beb603a11fb6593489a21398d2a491
tree74bea2b3d75db919d6aa75f0d92b9d856ea0c641
parent5c3912616d37bcc292ae09a8be7f1a58d54f19f9
hwmon: (it87) Use single group and is_visible for miscellaneous attributes

Use is_visible to determine if attributes should be generated or not.
This simplifies the code and reduces object size by about 120 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