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

Commit 5b79fe71 authored by LuK1337's avatar LuK1337 Committed by KakatkarAkshay
Browse files

Revert "power: fg-gen4: Report TIME_TO_FULL_NOW property"

When DASH charging, ttf_get_time_to_full() returns invalid data,
e.g. it returns that the phone will charge to full in 61522
seconds.

This (partially) reverts commit https://github.com/AmolAmrit/android_kernel_oneplus_sm7250/commit/1e4fbcb18664ee390f369b9777a36fa3b63fb54d



Signed-off-by: default avatarAmolAmrit <amol.amrit03@outlook.com>
parent c3c0c55a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3737,9 +3737,6 @@ static int fg_psy_get_property(struct power_supply *psy,
	case POWER_SUPPLY_PROP_TIME_TO_FULL_AVG:
		rc = fg_get_time_to_full(fg, &pval->intval);
		break;
	case POWER_SUPPLY_PROP_TIME_TO_FULL_NOW:
		rc = fg_get_time_to_full(fg, &pval->intval);
		break;
	case POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG:
		rc = fg_get_time_to_empty(fg, &pval->intval);
		break;
@@ -3966,7 +3963,6 @@ static enum power_supply_property fg_psy_props[] = {
	POWER_SUPPLY_PROP_CHARGE_COUNTER_SHADOW,
	POWER_SUPPLY_PROP_TIME_TO_FULL_AVG,
	POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG,
	POWER_SUPPLY_PROP_TIME_TO_FULL_NOW,
	POWER_SUPPLY_PROP_SOC_REPORTING_READY,
	POWER_SUPPLY_PROP_DEBUG_BATTERY,
	POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,