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

Commit 71e1c53f authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Ashay Jaiswal
Browse files

power_supply: Add INPUT_CURRENT_NOW property



The INPUT_CURRENT_NOW property is used to report
the instantaneous input current drawn by the charger
in uA.

CRs-Fixed: 930343
Change-Id: Ie8fe376a366eafa585647fd6a67f1ed5859f7815
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent f6727182
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(force_tlim),
	POWER_SUPPLY_ATTR(dp_dm),
	POWER_SUPPLY_ATTR(input_current_limited),
	POWER_SUPPLY_ATTR(input_current_now),
	POWER_SUPPLY_ATTR(rerun_aicl),
	POWER_SUPPLY_ATTR(cycle_count_id),
	POWER_SUPPLY_ATTR(safety_timer_expired),
+1 −0
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_FORCE_TLIM,
	POWER_SUPPLY_PROP_DP_DM,
	POWER_SUPPLY_PROP_INPUT_CURRENT_LIMITED,
	POWER_SUPPLY_PROP_INPUT_CURRENT_NOW,
	POWER_SUPPLY_PROP_RERUN_AICL,
	POWER_SUPPLY_PROP_CYCLE_COUNT_ID,
	POWER_SUPPLY_PROP_SAFETY_TIMER_EXPIRED,