hwmon: (adt7470) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Wed, 16 Jul 2014 15:12:54 +0000 (23:12 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:39 +0000 (07:01 -0700)
commit3048577609ef09859505ff2aaf7194a924202193
tree8cce82e0ccf220790e01b72ebfe59ff6e284f958
parent9027d933a91e1430ebcd9b9fb8da538cb40284ef
hwmon: (adt7470) 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/adt7470.c