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