]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 13 Apr 2021 16:38:56 +0000 (09:38 -0700)
commit4564645d213f1101f5afaff6c9cf9ec2620234d4
tree788e14509e883bbdcea33dee8a0840d76e293320
parentdc4bd1a339b71f7dffa5729cfaf711d6e3dc4573
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
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sch5627.c