Re: [PATCH v3] auxdisplay: lcd2s: add error handling for i2c transfers

From: Andy Shevchenko

Date: Fri Mar 13 2026 - 06:03:04 EST


On Thu, Mar 12, 2026 at 10:51:36PM +0800, Wang Jun wrote:
> The lcd2s_print() and lcd2s_gotoxy() functions currently ignore the
> return value of lcd2s_i2c_master_send(), which can fail. This can lead
> to silent data loss or incorrect cursor positioning.
>
> Add proper error checking: if the number of bytes sent does not match
> the expected length, return -EIO; otherwise propagate any error code
> from the I2C transfer.

Pushed to my review and testing queue, thanks!

--
With Best Regards,
Andy Shevchenko