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

Commit 4f6abbb0 authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: power-supply: add property POWER_SUPPLY_PROP_RESISTANCE_NOW



This property exposes the instantaneous battery resistance.
The unit is in milli-ohms.

CRs-Fixed: 792108
Change-Id: I6e1f4b4af12933e2c991d85e7c4dae0cc7e4fcbe
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent d2508db8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(resistance),
	POWER_SUPPLY_ATTR(resistance_capacitive),
	POWER_SUPPLY_ATTR(resistance_id),
	POWER_SUPPLY_ATTR(resistance_now),
	/* Local extensions */
	POWER_SUPPLY_ATTR(usb_hc),
	POWER_SUPPLY_ATTR(usb_otg),
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_RESISTANCE_CAPACITIVE,
	/* unit is in ohms due to ID being typically in kohm range */
	POWER_SUPPLY_PROP_RESISTANCE_ID,
	POWER_SUPPLY_PROP_RESISTANCE_NOW,
	/* Local extensions */
	POWER_SUPPLY_PROP_USB_HC,
	POWER_SUPPLY_PROP_USB_OTG,