hwmon: (lm70) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sun, 6 Apr 2014 04:44:47 +0000 (21:44 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 21 May 2014 23:02:20 +0000 (16:02 -0700)
commitaa9bcddada9e6e6538ac44b3623bb23b802ba689
treec6cc3112900c4f111f962149c49d4d0a0b6429a5
parent4b660a7f5c8099d88d1a43d8ae138965112592c7
hwmon: (lm70) 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/lm70.c