]> 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>
Thu, 21 Mar 2013 15:09:57 +0000 (08:09 -0700)
commitfbaa035babb4ca6ba4256a80fa8097a13fff2210
treef59229ea3f97563f809b0f5093eba8dc55bff1cc
parentc4887a3d1db2c306ce1b8d9a3806e3fcd32f07a6
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