ANDROID: GKI: power_supply: Add FG_TYPE power-supply property
Use the FG_TYPE property to report the type of FG
present in the system. For example on QG, it is
voltage-mode based QG or cc-mode based QG.
Change-Id: Iaad3ad29b2d778eed215d420a23b601587163e83
Bug: 155087902
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
(cherry picked from commit 1c044cbc16
)
Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
parent
d52bd0f72d
commit
3bc16e441f
2 changed files with 2 additions and 0 deletions
|
@ -506,6 +506,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||||
POWER_SUPPLY_ATTR(parallel_output_mode),
|
POWER_SUPPLY_ATTR(parallel_output_mode),
|
||||||
POWER_SUPPLY_ATTR(alignment),
|
POWER_SUPPLY_ATTR(alignment),
|
||||||
POWER_SUPPLY_ATTR(moisture_detection_enabled),
|
POWER_SUPPLY_ATTR(moisture_detection_enabled),
|
||||||
|
POWER_SUPPLY_ATTR(fg_type),
|
||||||
/* Local extensions of type int64_t */
|
/* Local extensions of type int64_t */
|
||||||
POWER_SUPPLY_ATTR(charge_counter_ext),
|
POWER_SUPPLY_ATTR(charge_counter_ext),
|
||||||
POWER_SUPPLY_ATTR(charge_charger_state),
|
POWER_SUPPLY_ATTR(charge_charger_state),
|
||||||
|
|
|
@ -389,6 +389,7 @@ enum power_supply_property {
|
||||||
POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
|
POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
|
||||||
POWER_SUPPLY_PROP_ALIGNMENT,
|
POWER_SUPPLY_PROP_ALIGNMENT,
|
||||||
POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE,
|
POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE,
|
||||||
|
POWER_SUPPLY_PROP_FG_TYPE,
|
||||||
/* Local extensions of type int64_t */
|
/* Local extensions of type int64_t */
|
||||||
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
|
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
|
||||||
POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,
|
POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,
|
||||||
|
|
Loading…
Reference in a new issue