mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-06 19:33:17 +00:00
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: Wilson Chan <wtchan@google.com>
Bug: 140835784
Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
(cherry picked from commit 3c7e776d03e956a0889c849c384d18400ef0e28e)
(cherry picked from commit bc1980052972b75422db80dfd5b5756c2d42f978)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I468f18c1f1d761565e15944b5bc58f82244924d4
This commit is contained in:
@ -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),
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user