hwmon: (adm1031) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Thu, 3 Jul 2014 13:57:44 +0000 (21:57 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:37 +0000 (07:01 -0700)
commitb060f3c4ac99b050b990b316637f7fd9898b9fd7
treec5216391a87ef3b22acb67b34f85eb1c5b192085
parent278ee1c840fcf32f156fd876efcc3780bc580f6c
hwmon: (adm1031) Convert to devm_hwmon_device_register_with_groups

Use ATTRIBUTE_GROUPS macro and devm_hwmon_device_register_with_groups() to
simplify the code a bit.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adm1031.c