bq27x00_battery: Fix flag reading for bq27742
This patch fix the following issues. - Flag for bq27742 is 2 bytes contracy to 1 byte for older hardware - Don't read FLAG_CI as bq27742 does not have it - Use Battery full capacity register as last measure discharge Signed-off-by: NPuthikorn Voravootivat <puthik@chromium.org> Reviewed-by: NBenson Leung <bleung@chromium.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
Showing
想要评论请 注册 或 登录