Skip to content

Commit 0ddce55

Browse files
jhnikulagroeck
authored andcommitted
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>
1 parent 9b96f82 commit 0ddce55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/lm75.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ static int lm75_i3c_reg_read(void *context, unsigned int reg, unsigned int *val)
622622
{
623623
.rnw = true,
624624
.len = 2,
625-
.data.out = data->val_buf,
625+
.data.in = data->val_buf,
626626
},
627627
};
628628
int ret;

0 commit comments

Comments
 (0)