mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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:
committed by
Guenter Roeck
parent
9b96f82c78
commit
0ddce55490
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user