Re: [PATCH] HID: mcp2221: use mcp_i2c_smbus_read for block reads

From: Jiri Kosina

Date: Fri Feb 27 2026 - 13:00:36 EST


On Fri, 6 Feb 2026, Romain Sioen wrote:

> 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@xxxxxxxxxxxxx>
> Signed-off-by: Marius Cristea <marius.cristea@xxxxxxxxxxxxx>

Applied to hid.git#for-7.1/mcp2221, thanks.

--
Jiri Kosina
SUSE Labs