hwmon: (sht21) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Fri, 11 Jul 2014 02:44:48 +0000 (10:44 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 4 Aug 2014 14:01:38 +0000 (07:01 -0700)
commitb8d56898307f561d7e100d33c244001a34ee1262
tree91d649eb137469e245a05fa2e8cf7234b2a4b158
parent4395d78056a8b5716f7e1858feb721ccf91fb104
hwmon: (sht21) 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/sht21.c