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

Commit eb60a50e authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

power: power-supply: Add POWER_SUPPLY_PROP_CHARGER_STATUS property



CHARGER_STATUS power-supply property reports the charger status.

Change-Id: I269b0be18b56d56c0ab0e68ee1d7194d09824dd6
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent 6bdd7fc9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -481,6 +481,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(cp_ilim),
	POWER_SUPPLY_ATTR(irq_status),
	POWER_SUPPLY_ATTR(parallel_output_mode),
	POWER_SUPPLY_ATTR(charger_status),
	/* 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
@@ -361,6 +361,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_CP_ILIM,
	POWER_SUPPLY_PROP_IRQ_STATUS,
	POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
	POWER_SUPPLY_PROP_CHARGER_STATUS,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */