mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-06 15:25:23 +00:00
ANDROID: GKI: power-supply: Add VOLTAGE_VPH power supply property
Add VOLTAGE_VPH power supply property to expose VPH voltage to user space.
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
(cherry picked from commit bb818125c4)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: I16eb6efe3eef5b173b0f1a66dc21ab6c4c5cb968
This commit is contained in:
@ -452,6 +452,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(cc_soc),
|
||||
POWER_SUPPLY_ATTR(batt_age_level),
|
||||
POWER_SUPPLY_ATTR(scale_mode_en),
|
||||
POWER_SUPPLY_ATTR(voltage_vph),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@ -324,6 +324,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_CC_SOC,
|
||||
POWER_SUPPLY_PROP_BATT_AGE_LEVEL,
|
||||
POWER_SUPPLY_PROP_SCALE_MODE_EN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_VPH,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user