hwmon: (lm77) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sat, 12 Apr 2014 16:25:25 +0000 (09:25 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 21 May 2014 23:02:21 +0000 (16:02 -0700)
commit5975dfbf40bfb342db1b25a9b1e2c3b867773612
tree098dad4c3dc2db4f21f6ac8610ae38cb5a93484d
parent48dbd6ff142d518e01888d2addfab731ff65460e
hwmon: (lm77) Convert to use devm_hwmon_device_register_with_groups

Use devm_hwmon_device_register_with_groups API to attach attributes
to hwmon device, simplify code, and reduce code size.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm77.c