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

Commit 540f4ebc authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by David Collins
Browse files

power_supply: Add RESISTANCE property to power supply



Add a "RESISTANCE" property to the power supply frame work that
signifies the internal resistance of the power supply. The units
for this property should be in micro-ohms.

Change-Id: I2fcd3e7e314e61812d364dc0bd85ef1c8eec1622
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 516e41e5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -216,6 +216,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(scope),
	POWER_SUPPLY_ATTR(charge_term_current),
	POWER_SUPPLY_ATTR(calibrate),
	POWER_SUPPLY_ATTR(resistance),
	/* Local extensions */
	POWER_SUPPLY_ATTR(usb_hc),
	POWER_SUPPLY_ATTR(usb_otg),
+1 −0
Original line number Diff line number Diff line
@@ -149,6 +149,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_SCOPE,
	POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT,
	POWER_SUPPLY_PROP_CALIBRATE,
	POWER_SUPPLY_PROP_RESISTANCE,
	/* Local extensions */
	POWER_SUPPLY_PROP_USB_HC,
	POWER_SUPPLY_PROP_USB_OTG,