+12
−3
Loading
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>