mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
rk3368: rk818 battery: allow capacity to be negative value
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
parent
e1be224e4c
commit
8a4dc647f1
|
|
@ -2446,8 +2446,6 @@ static void update_battery_info(struct battery_info *di)
|
|||
di->remain_capacity = _get_realtime_capacity(di);
|
||||
if (di->remain_capacity > di->fcc)
|
||||
_capacity_init(di, di->fcc);
|
||||
else if (di->remain_capacity < 0)
|
||||
_capacity_init(di, 0);
|
||||
|
||||
if (di->real_soc > 100)
|
||||
di->real_soc = 100;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user