]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ltc4151) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Wed, 4 Jun 2014 23:47:12 +0000 (07:47 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 12 Jun 2014 15:36:47 +0000 (08:36 -0700)
commit15b52f6ab8f628695c05c28b6d32b96a4800ef85
tree1441bcc12e1093246c060ae9fe05c66b6fe88c7b
parente1556c1f3eec40bdc44e1c3374adbdee251d6f3d
hwmon: (ltc4151) 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>
Tested-by: Per Dalén <per.dalen@appeartv.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc4151.c