From: Sanman Pradhan Date: Sat, 7 Mar 2026 22:45:19 +0000 (-0800) Subject: hwmon: (pmbus/max31785) fix argument type for i2c_smbus_write_byte_data wrapper X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a42986b65776759490ac960910651c1e4634b17;p=thirdparty%2Fkernel%2Flinux.git hwmon: (pmbus/max31785) fix argument type for i2c_smbus_write_byte_data wrapper 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 Link: https://lore.kernel.org/r/20260307224517.38316-2-sanman.p211993@gmail.com Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/pmbus/max31785.c b/drivers/hwmon/pmbus/max31785.c index 1f94d38a16371..50073fe0c5e88 100644 --- a/drivers/hwmon/pmbus/max31785.c +++ b/drivers/hwmon/pmbus/max31785.c @@ -55,7 +55,7 @@ static inline void max31785_wait(const struct max31785_data *data) static int max31785_i2c_write_byte_data(struct i2c_client *client, struct max31785_data *driver_data, - int command, u16 data) + int command, u8 data) { int rc;