Skip to content
Commit 03508eea authored by Marc Ferland's avatar Marc Ferland Committed by Guenter Roeck
Browse files

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: default avatarMarc Ferland <ferlandm@amotus.ca>
Link: https://lore.kernel.org/r/20220712193504.1374656-1-ferlandm@amotus.ca


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 9992b19d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment