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

Commit e698274f authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power_supply: add CYCLE_COUNT_ID property



To support the bucket based cycle counters, we need a property
to specify the id of the cycle counter. For e.g. if the cycle
count for bucket 4 needs to be read, then the user need to
set cycle_count_id before reading the cycle_count property.

Add support for that via CYCLE_COUNT_ID property.

CRs-Fixed: 847140
Change-Id: I53d8b90d330da64b26b6a674f1d7c2c6649e4eb5
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 55bc7ff0
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(dp_dm),
	POWER_SUPPLY_ATTR(input_current_limited),
	POWER_SUPPLY_ATTR(rerun_aicl),
	POWER_SUPPLY_ATTR(cycle_count_id),
	/* 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
@@ -198,6 +198,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_DP_DM,
	POWER_SUPPLY_PROP_INPUT_CURRENT_LIMITED,
	POWER_SUPPLY_PROP_RERUN_AICL,
	POWER_SUPPLY_PROP_CYCLE_COUNT_ID,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */