static int smb329_i2c_read_byte(uint8_t *value, uint8_t reg) { int ret = smb329_i2c_read(value, reg, 1); if (ret) pr_err("smb329: read byte error (%d)\n", ret); return ret; }
/** Function:smb329_i2c_read_byte Target: Read a byte from Switch charger Timing: TBD INPUT: value-> store buffer reg -> reg offset to read return :TRUE-->OK FALSE-->Fail */ static int smb329_i2c_read_byte(u8 *value, u8 reg) { int result = 0; result = smb329_i2c_read(value, reg, 1); if (result != 0) pr_info("SMB329 I2C read fail = %d\n",result); return result; }