From 6efb91e10a2f1f2211e9000cfb7264ce0179410d Mon Sep 17 00:00:00 2001 From: yihsiangpeng Date: Thu, 14 May 2020 13:01:21 +0800 Subject: [PATCH] ANDROID: power_supply: Add RTX power-supply property Bug: 155145996 Signed-off-by: yihsiangpeng Change-Id: I716ccfe3224debe5747e483c5acce01b51e6fa6b --- drivers/power/supply/power_supply_sysfs.c | 1 + include/linux/power_supply.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index 2894700c3486..7eee04896362 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -477,6 +477,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(operating_freq), POWER_SUPPLY_ATTR(aicl_delay), POWER_SUPPLY_ATTR(aicl_icl), + POWER_SUPPLY_ATTR(rtx), POWER_SUPPLY_ATTR(cutoff_soc), POWER_SUPPLY_ATTR(sys_soc), POWER_SUPPLY_ATTR(batt_soc), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 2dae1837a21a..6977e8c5a2e6 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -360,6 +360,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_OPERATING_FREQ, POWER_SUPPLY_PROP_AICL_DELAY, POWER_SUPPLY_PROP_AICL_ICL, + POWER_SUPPLY_PROP_RTX, POWER_SUPPLY_PROP_CUTOFF_SOC, POWER_SUPPLY_PROP_SYS_SOC, POWER_SUPPLY_PROP_BATT_SOC,