Re: [RTF PATCH] hwmon: (emc1403) Convert to with_info API

From: Guenter Roeck
Date: Wed May 01 2024 - 20:12:20 EST


On 5/1/24 15:44, Guenter Roeck wrote:
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@xxxxxxxxxx>
Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
RFT: Module tested only.

Oops. Obviously the subject was supposed to start with RFT as well :-)

Guenter