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

Commit 447a7d1f authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Abhijeet Dharmapurikar
Browse files

power_supply: add property POWER_SUPPLY_PROP_UPDATE_NOW



Some hardware can have access protocols that have delays. Since it's not
always desirable to update these properties, there needs to be a control
for forcing immediate updates.

Add the power supply property POWER_SUPPLY_PROP_UPDATE_NOW to address
this.

Change-Id: I7e09c00430ef0071b7979bea42c6b0291ac8fd36
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 1677ceb2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -213,6 +213,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(usb_otg),
	POWER_SUPPLY_ATTR(charge_enabled),
	POWER_SUPPLY_ATTR(flash_current_max),
	POWER_SUPPLY_ATTR(update_now),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	/* Properties of type `const char *' */
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_USB_OTG,
	POWER_SUPPLY_PROP_CHARGE_ENABLED,
	POWER_SUPPLY_PROP_FLASH_CURRENT_MAX,
	POWER_SUPPLY_PROP_UPDATE_NOW,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */