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:
Ashay Jaiswal
2019-01-25 14:57:26 +05:30
committed by Mark Salyzyn
parent d4ce1e676b
commit 8b94d07235
2 changed files with 2 additions and 0 deletions

View File

@ -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),

View File

@ -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,