hwmon: (adm1021) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Fri, 4 Apr 2014 16:01:34 +0000 (18:01 +0200)
committerJean Delvare <jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:34 +0000 (18:01 +0200)
commitc669ec8039e22fbbf0ac291d1c38eedf0a9b4b7a
tree6cd5d8b2d4882c01ca9d622e71ef42e7f3814ef5
parent5ec25c93e0397a02a37cb2f091da0e28fe284566
hwmon: (adm1021) Convert to use devm_hwmon_device_register_with_groups

Simplify code, reduce code size, and attach hwmon attributes to
hwmon device.

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