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

Commit 787454dc authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Gerrit - the friendly Code Review server
Browse files

power: smb5: fix battery status reporting



Battery status is reported as UNKNOWN when charging
is paused, fix this by reporting status as NOT-CHARGING.

Change-Id: I73dd5e130a8611ad5273260c00494c201ada0741
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent be49c613
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1208,6 +1208,7 @@ int smblib_get_prop_batt_status(struct smb_charger *chg,
		val->intval = POWER_SUPPLY_STATUS_FULL;
		break;
	case DISABLE_CHARGE:
	case PAUSE_CHARGE:
		val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING;
		break;
	default: