From 2193e751d63873f0911063eba92f49241fafb64f Mon Sep 17 00:00:00 2001 From: Sahil Chandna Date: Thu, 17 Jan 2019 16:43:13 +0530 Subject: [PATCH] ANDROID: GKI: power_supply: Add SCALE_MODE_EN power-supply property Add POWER_SUPPLY_PROP_SCALE_MODE_EN property to indicate the status of filtered voltage based SOC scaling. Signed-off-by: Sahil Chandna (cherry picked from commit e9ab4eff9e48f99d318dd2bd3173a3a8cd0afd8e) Signed-off-by: Mark Salyzyn Bug: 150789066 Change-Id: I2d110348eb5ecc85847879b9bc783ddc39e934b7 --- 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 5917b2636e80..401efa084216 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -451,6 +451,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(qc_opti_disable), POWER_SUPPLY_ATTR(cc_soc), POWER_SUPPLY_ATTR(batt_age_level), + POWER_SUPPLY_ATTR(scale_mode_en), /* Charge pump properties */ POWER_SUPPLY_ATTR(cp_status1), POWER_SUPPLY_ATTR(cp_status2), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 100247cbb605..dc56925b2c66 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -323,6 +323,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_QC_OPTI_DISABLE, POWER_SUPPLY_PROP_CC_SOC, POWER_SUPPLY_PROP_BATT_AGE_LEVEL, + POWER_SUPPLY_PROP_SCALE_MODE_EN, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2,