]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit021d3a79419bd9bf4086799f66e0d9aa5ac0ce2a
tree74bea2b3d75db919d6aa75f0d92b9d856ea0c641
parent7b6766372d96ed1734ef3849986b8425ef793a9d
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