]> git.karo-electronics.de Git - linux-beck.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)
commit68f86c75ca1eaf790907eb43c68f9f2996474116
tree0cc5464060e29986ba96fb99745206a6a6709113
parent699f279d998cf95809babc987abd4a409eada5b2
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