]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (mcp3021) improve driver support for newer hwmon interface
authorMarc Ferland <ferlandm@amotus.ca>
Tue, 12 Jul 2022 19:35:04 +0000 (15:35 -0400)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 15 Jul 2022 17:55:57 +0000 (10:55 -0700)
commit7b74d0ae5f873470123f4e8b1f1dc9d50dde708d
tree69a31113d6d789d309ab669b958df29af68c8a8e
parent4d57f055a0870ff2d4bc1cf0ee3678768f0e5ef4
hwmon: (mcp3021) improve driver support for newer hwmon interface

This driver is currently broken, it does not show the in0_input sysfs
file and also returns the following message on startup:

hwmon_device_register() is deprecated. Please convert the driver to
use hwmon_device_register_with_info().

This patch converts the driver and also cleans up the 'read' function.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
Link: https://lore.kernel.org/r/20220712193504.1374656-1-ferlandm@amotus.ca
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/mcp3021.c