mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-04 11:03:14 +00:00
ANDROID: GKI: power_supply: add CHIP_VERSION property
Add 'POWER_SUPPLY_PROP_CHIP_VERSION' property to expose
chip version to user-space.
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
(cherry picked from commit 885bab7ac3)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Ief43130c0c206c15f95a4432ad012383a28f750e
This commit is contained in:
committed by
Mark Salyzyn
parent
d4ce1e676b
commit
8b94d07235
@ -453,6 +453,7 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(batt_age_level),
|
||||
POWER_SUPPLY_ATTR(scale_mode_en),
|
||||
POWER_SUPPLY_ATTR(voltage_vph),
|
||||
POWER_SUPPLY_ATTR(chip_version),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@ -325,6 +325,7 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_BATT_AGE_LEVEL,
|
||||
POWER_SUPPLY_PROP_SCALE_MODE_EN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_VPH,
|
||||
POWER_SUPPLY_PROP_CHIP_VERSION,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user