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

Commit bf99eb1b authored by LuK1337's avatar LuK1337 Committed by MajorP93
Browse files

charger_ic: Hardcode current max to 6000000 when DASH charging

This is kinda a hack but at least it gets us a nice
"Rapidly charging" label on the lock screen...

Change-Id: I94ba44303140d69a23bef77d93aefd3c30438234
parent 80924018
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -11745,6 +11745,9 @@ static int smb5_usb_get_prop(struct power_supply *psy,
		val->intval = get_client_vote(chg->usb_icl_votable, PD_VOTER);
		break;
	case POWER_SUPPLY_PROP_CURRENT_MAX:
		if (oplus_vooc_get_fastchg_started() == true)
			val->intval = 6000000;
		else
			rc = smblib_get_prop_input_current_settled(chg, val);
		break;
	case POWER_SUPPLY_PROP_TYPE: