hwmon: (wm831x) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Tue, 17 Jun 2014 15:10:55 +0000 (23:10 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:34 +0000 (07:01 -0700)
commit9a70c97b218f5b78b3a265c3ba797b18fa36bd02
tree860eac7a01f35bf9ceb3ff07a9720965906ea08d
parentf82b2c344994f23c003c967fb833d1a0d7b2527f
hwmon: (wm831x) 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/wm831x-hwmon.c