Skip to content
Commit 3c60726d authored by Bastian Germann's avatar Bastian Germann Committed by Guenter Roeck
Browse files

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: default avatarBastian Germann <bastiangermann@fishpost.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent fb8eefd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment