[PATCH 1/2] hwmon: (asus_atk0110) Replace deprecated device register call

2018-05-31 Thread Bastian Germann
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. Signed-off-by: Bastian Germann --- drivers/hwmon/asus_atk0110.c | 71 +++

[PATCH 1/2] hwmon: (asus_atk0110) Replace deprecated device register call

2018-05-31 Thread Bastian Germann
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 b

[PATCH 1/2] hwmon: (asus_atk0110) Replace deprecated device register call

2018-06-01 Thread Bastian Germann
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 b

Re: [PATCH 1/2] hwmon: (asus_atk0110) Replace deprecated device register call

2018-05-31 Thread Guenter Roeck
Hi Bastian, On 05/31/2018 07:01 AM, Bastian Germann wrote: 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. Signed-off-by: B

Re: [PATCH 1/2] hwmon: (asus_atk0110) Replace deprecated device register call

2018-06-01 Thread Guenter Roeck
On 06/01/2018 04:07 AM, Bastian Germann wrote: 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 c