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

Commit caaeb5f7 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

ANDROID: GKI: power: supply: Add POWER_SUPPLY_PROP_ALIGNMENT



Partially taken from commit 3c7e776d03e956a0889c849c384d18400ef0e28e
("p9221: add wireless/align node for move to center")

Signed-off-by: default avatarWilson Chan <wtchan@google.com>
Bug: 140835784
Signed-off-by: default avatarYiHsiang Peng <yihsiangpeng@google.com>
(cherry picked from commit 3c7e776d03e956a0889c849c384d18400ef0e28e)
(cherry picked from commit bc1980052972b75422db80dfd5b5756c2d42f978)
Signed-off-by: default avatarMark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I468f18c1f1d761565e15944b5bc58f82244924d4
parent 63ea9d3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -498,6 +498,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(alignment),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	POWER_SUPPLY_ATTR(charge_charger_state),
+8 −0
Original line number Diff line number Diff line
@@ -158,6 +158,13 @@ enum {
	POWER_SUPPLY_QC_INOV_THERMAL_DISABLE = BIT(2),
};

enum {
	POWER_SUPPLY_ALIGN_CHECKING = 0,
	POWER_SUPPLY_ALIGN_MOVE,
	POWER_SUPPLY_ALIGN_CENTERED,
	POWER_SUPPLY_ALIGN_ERROR,
};

enum power_supply_property {
	/* Properties of type `int' */
	POWER_SUPPLY_PROP_STATUS = 0,
@@ -370,6 +377,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_CP_ILIM,
	POWER_SUPPLY_PROP_IRQ_STATUS,
	POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
	POWER_SUPPLY_PROP_ALIGNMENT,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,