mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
HID: mcp2221: use mcp_i2c_smbus_read for block reads
Refactor mcp_smbus_xfer() to use the mcp_i2c_smbus_read() helper function for I2C_SMBUS_BLOCK_DATA and I2C_SMBUS_I2C_BLOCK_DATA read operations. This replaces the manual setup of the receive buffer and explicit calls to mcp_send_data_req_status(), making the code cleaner and more consistent with other read paths in the driver. Signed-off-by: Romain Sioen <romain.sioen@microchip.com> Signed-off-by: Marius Cristea <marius.cristea@microchip.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
f50822fd86
commit
ab05515757
1 changed files with 9 additions and 9 deletions
Loading…
Add table
Add a link
Reference in a new issue