]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18080791f2d399f99e9a3c58d525897a09101018
tree91d649eb137469e245a05fa2e8cf7234b2a4b158
parentcf431b7e3538d6fbb863049d720432db8dfe73e3
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