hwmon: (sch5627) Convert to hwmon_device_register_with_info()
authorArmin Wolf <W_Armin@gmx.de>
Sun, 11 Apr 2021 16:42:24 +0000 (18:42 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commite7e0b466a8489288795e3bb0f93acde5b2e6ffa2
treeecc56ca01e5d16cbbd4a43fbeebf3a4105a8a8cb
parentc3dd4b7d1e09a09d496b1084a89413cb1f523fa2
hwmon: (sch5627) Convert to hwmon_device_register_with_info()

hwmon_device_register() is deprecated.
Convert driver to use hwmon_device_register_with_info() and
remove sysfs attributes which are now being handled by the
hwmon subsystem.

Channel handling was inspired by corsair-cpro.

Tested on a Fujitsu Esprimo P720.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210411164225.11967-2-W_Armin@gmx.de
[groeck: Replaced 0 with NULL]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch5627.c