mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: GKI: 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: Anirudh Ghayal <aghayal@codeaurora.org> (cherry picked from commit c2427520124e508eab9b5d5ba0a43a2ec6675e39) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 157994070 Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
committed by
Will McVicker
parent
cb791c3012
commit
8eaf3f6853
@@ -508,6 +508,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(alignment),
|
||||
POWER_SUPPLY_ATTR(moisture_detection_enabled),
|
||||
POWER_SUPPLY_ATTR(fg_type),
|
||||
POWER_SUPPLY_ATTR(charger_status),
|
||||
/* Local extensions of type int64_t */
|
||||
POWER_SUPPLY_ATTR(charge_counter_ext),
|
||||
POWER_SUPPLY_ATTR(charge_charger_state),
|
||||
|
||||
@@ -391,6 +391,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_ALIGNMENT,
|
||||
POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE,
|
||||
POWER_SUPPLY_PROP_FG_TYPE,
|
||||
POWER_SUPPLY_PROP_CHARGER_STATUS,
|
||||
/* 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