]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (it87) Convert to use new hwmon API
authorGuenter Roeck <linux@roeck-us.net>
Mon, 30 Mar 2015 18:13:49 +0000 (11:13 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:36 +0000 (06:32 -0700)
commit91c2b84a8d62deeb2144926185ad0038ae0c58a9
tree98782c5a44d7678d49ab8f75231825ec3bc87504
parent021d3a79419bd9bf4086799f66e0d9aa5ac0ce2a
hwmon: (it87) Convert to use new hwmon API

Convert to use devm_hwmon_device_register_with_groups to simplify
code and reduce code size. This also attaches sysfs attributes
to the hwmon device and no longer to the platform device.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/it87.c