power: supply: rk818-battery: Don't reset dsoc to 0 on rk818_vb_low_irq

The interrupt fires at 3.4V vbat which is not equivalent to 0% charge.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
Ondrej Jirman
2022-12-11 10:39:22 +01:00
committed by Mauro (mdrjr) Ribeiro
parent 281bbaf6ed
commit 06570e0830

View File

@@ -2930,7 +2930,6 @@ static irqreturn_t rk818_vb_low_irq(int irq, void *bat)
{
struct rk818_battery *di = (struct rk818_battery *)bat;
di->dsoc = 0;
rk_send_wakeup_key();
BAT_INFO("lower power yet, power off system! v=%d, c=%d, dsoc=%d\n",
di->voltage_avg, di->current_avg, di->dsoc);