]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (max6697) Use is_visible and sysfs_create_group
authorGuenter Roeck <linux@roeck-us.net>
Mon, 18 Mar 2013 13:40:16 +0000 (06:40 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Mar 2013 16:00:28 +0000 (09:00 -0700)
commitd43324c3bbc009fed3904a8374c45ad0b15b3990
tree70486a6268d10cc68bfe6d84fd313b8f7593abc5
parenta3ecced5ecc28a7a64f3722a38c8051395517f95
hwmon: (max6697) Use is_visible and sysfs_create_group

Simplify the code and reduce its size by using is_visible to determine
valid attributes, and sysfs_create_group to create all of them with
a single call.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6697.c