summaryrefslogtreecommitdiff
path: root/fs/devfs/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorWang Jun <1742789905@qq.com>2026-03-12 22:51:36 +0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2026-03-13 11:00:06 +0100
commit995a418a6ca33e466e5e1527663ae3d5eee18304 (patch)
treed73664e666c3f329bf34c552388141f7cb9195c3 /fs/devfs/git@git.tavy.me:linux.git
parent398c0c8bbc8f5a9d2f43863275a427a9d3720b6f (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 'fs/devfs/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions