hwmon: (wm8350) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Tue, 17 Jun 2014 15:12:08 +0000 (23:12 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:34 +0000 (07:01 -0700)
commitb3aabd6db3700dfa6ab334c96cbf16c04929b8a2
treeb4702123521bf151ba716ad260961aa2987aa104
parent9a70c97b218f5b78b3a265c3ba797b18fa36bd02
hwmon: (wm8350) 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>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/wm8350-hwmon.c