]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ads7871) Convert to devm_hwmon_device_register_with_groups
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Jul 2014 12:31:21 +0000 (20:31 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 28 Jun 2016 01:58:03 +0000 (18:58 -0700)
commita5af14ca86326669efbeccd8d2a448ea83231e9d
tree0cc5464060e29986ba96fb99745206a6a6709113
parentdbf122f6781aba5023b5cd160a87f285f5a6243d
hwmon: (ads7871) 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.

The update_lock mutex is not used, so remove it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ads7871.c