]> 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>
Mon, 1 Apr 2013 17:21:00 +0000 (10:21 -0700)
commite9800143b27cef94ec56dc656f0db19bf06a0c8d
treee8e5e94d9675abf1e92cdb8805229336001819ec
parent9921cb14f030c62b4dc4a1ab2af7151c211660e4
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