Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 239c7c89 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: smb135x-charger: Fix battery missing status indication



The battery missing bit being set indicates that the battery is
missing, update the batt_present variable with correct status.

Change-Id: I58fb2d0ed78b3695723f6159ba06b15aa479b0ef
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent ede485fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1088,7 +1088,7 @@ static int cold_soft_handler(struct smb135x_chg *chip, u8 rt_stat)
static int battery_missing_handler(struct smb135x_chg *chip, u8 rt_stat)
{
	pr_debug("rt_stat = 0x%02x\n", rt_stat);
	chip->batt_present = !!rt_stat;
	chip->batt_present = !rt_stat;
	return 0;
}
static int vbat_low_handler(struct smb135x_chg *chip, u8 rt_stat)