mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: GKI: power_supply: Add VOLTAGE_MAX_LIMIT power supply property
Add power supply property VOLTAGE_MAX_LIMIT in usb_psy to allow external entities to impose limitation on the maximum USB adapter output voltage. Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org> Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org> (cherry picked from commit e0219228eed9c1a3a79dc10ec7257a375560c396) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 150789066 Change-Id: I3d05188f11ccd0c47cfca626e528bbe2e30582ae
This commit is contained in:
committed by
Mark Salyzyn
parent
1b3d52f529
commit
913ef30153
@@ -456,6 +456,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(chip_version),
|
||||
POWER_SUPPLY_ATTR(therm_icl_limit),
|
||||
POWER_SUPPLY_ATTR(dc_reset),
|
||||
POWER_SUPPLY_ATTR(voltage_max_limit),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@@ -328,6 +328,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_CHIP_VERSION,
|
||||
POWER_SUPPLY_PROP_THERM_ICL_LIMIT,
|
||||
POWER_SUPPLY_PROP_DC_RESET,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX_LIMIT,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user