diff options
| author | 2026-03-12 22:51:36 +0800 | |
|---|---|---|
| committer | 2026-03-13 11:00:06 +0100 | |
| commit | 995a418a6ca33e466e5e1527663ae3d5eee18304 (patch) | |
| tree | d73664e666c3f329bf34c552388141f7cb9195c3 /include/linux/clk/ssh:/git@git.zx2c4.com | |
| parent | dt-bindings: auxdisplay: ht16k33: Use unevaluatedProperties to fix common property warning (diff) | |
auxdisplay: lcd2s: add error handling for i2c transfers
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.
Signed-off-by: Wang Jun <1742789905@qq.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/linux/clk/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
