hwmon: (ad7314) Convert to devm_hwmon_device_register_with_groups
commit157926c013b39561fd1e3b93f8df96fb0ed17648
authorAxel Lin <axel.lin@ingics.com>
Tue, 1 Jul 2014 14:29:28 +0000 (1 22:29 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 28 Jun 2016 01:58:03 +0000 (27 18:58 -0700)
tree8539c06d71281d4bb319cbb0fb18d16ad02cddb9
parent165720d9ff3e33f626802da6cef3118ebfc6940c
hwmon: (ad7314) 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/ad7314.c