
30 Nov
2016
30 Nov
'16
1:42 p.m.
On Wed, Nov 30, 2016 at 5:47 AM, Meng Yi meng.yi@nxp.com wrote:
/* write register's data */
if (dm_i2c_write(dev, PCF2127_REG_CTRL1, buf, sizeof(buf)) < 0)
return -1;
Please propagate the error properly:
ret = dm_i2c_write(dev, PCF2127_REG_CTRL1, buf, sizeof(buf)); if (ret) return ret;
Same applies in the other places.