Re: [PATCH 1/2] hwmon: (pmbus/max31785) fix argument type for i2c_smbus_write_byte_data wrapper
From: Guenter Roeck
Date: Sat Mar 07 2026 - 20:26:38 EST
On Sat, Mar 07, 2026 at 02:45:19PM -0800, Sanman Pradhan wrote:
> From: Sanman Pradhan <psanman@xxxxxxxxxxx>
>
> The local wrapper max31785_i2c_write_byte_data() declares its data
> parameter as u16 but passes it directly to i2c_smbus_write_byte_data()
> which takes u8. Fix the type to match the underlying API.
>
> No functional change; all current callers pass values that fit in u8.
>
> Signed-off-by: Sanman Pradhan <psanman@xxxxxxxxxxx>
Applied.
Thanks,
Guenter