hwmon: (lm75) Fix I3C transfer buffer pointer for incoming data

Use the I3C private transfer input buffer pointer for incoming data
instead of output buffer. For now this is harmless since both of those
pointers are union members but may confuse when reading the code.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Link: https://lore.kernel.org/r/20250513111739.508886-1-jarkko.nikula@linux.intel.com
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Jarkko Nikula
2025-05-14 05:34:21 -07:00
committed by Guenter Roeck
parent 9b96f82c78
commit 0ddce55490
+1 -1
View File
@@ -622,7 +622,7 @@ static int lm75_i3c_reg_read(void *context, unsigned int reg, unsigned int *val)
{
.rnw = true,
.len = 2,
.data.out = data->val_buf,
.data.in = data->val_buf,
},
};
int ret;