Skip to content
Commit 1094360d authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (emc1403) Convert to with_info API



Convert driver to register with the hwmon subsystem using
devm_hwmon_device_register_with_info() instead of
devm_hwmon_device_register_with_groups() to simplify the code
and to reduce its size. As side effect, this also fixes a couple
of overflow problems when writing limit and hysteresis registers.

Cc: Lars Petter Mostad <lars.petter.mostad@appear.net>
Tested-by: default avatarLars Petter Mostad <lars.petter.mostad@appear.net>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 45bf8305
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