[PATCH v6 2/2] hwmon: Add driver for I2C chip Nuvoton NCT7363Y
Guenter Roeck
linux at roeck-us.net
Wed Oct 23 02:14:15 AEDT 2024
On 10/22/24 00:20, Christophe JAILLET wrote:
[ ... ]
>> + hwmon_dev =
>> + devm_hwmon_device_register_with_info(dev, client->name, data,
>> + &nct7363_chip_info, NULL);
>
> return devm_hwmon_device_register_with_info()?
>
No, because the function needs to return an integer, not a pointer.
And
return PTR_ERR_OR_ZERO(devm_hwmon_device_register_with_info(...));
would look a bit awkward.
Guenter
More information about the openbmc
mailing list