]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (asus_atk0110) Replace deprecated device register call
authorBastian Germann <bastiangermann@fishpost.de>
Fri, 1 Jun 2018 15:14:18 +0000 (17:14 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 1 Jun 2018 16:34:54 +0000 (09:34 -0700)
commit20060c9691f58322fed5d86108afa1c9d78c9e37
tree6b7e21f31b19ceed2fab24a60edf7ba07edeb3d2
parent31415b4fda5de0d17766b5b4fb4325b549328e55
hwmon: (asus_atk0110) Replace deprecated device register call

Make the asus_atk0110 driver use hwmon_device_register_with_groups instead
of the deprecated hwmon_device_register.
Construct the expected attribute_group array from the sensor list which
contains all needed attributes.
Remove the manual sysfs file creation and deletion that are now taken care
of by the (un)register calls via the attribute_group array.

Signed-off-by: Bastian Germann <bastiangermann@fishpost.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus_atk0110.c