hwmon: (htu21) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Sun, 29 Jun 2014 07:00:59 +0000 (15:00 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:35 +0000 (07:01 -0700)
commitfa0efc4091e2299741a0391eeaadd36f335d942e
tree4df81c1112a7b28ed0378eb9316defaafebdfd0c
parent7b3dadc4b391c878c26917e23e2af8653dd13db3
hwmon: (htu21) 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/htu21.c