From c4bb7e5e2e8822e7273ac782b0b1576b04acea2c Mon Sep 17 00:00:00 2001 From: Thierry Strudel Date: Thu, 21 Nov 2019 22:09:17 -0800 Subject: [PATCH] ANDROID: GKI: power_supply: Add operating frequency property Signed-off-by: Patrick Tjin Bug: 127374126 (cherry picked from commit e0bb03882c146ce9676430296e3239bdad42c3a0) Signed-off-by: Thierry Strudel (cherry picked from commit 99b6e1d28b835dab8d870742f53a94a628d61a47) Signed-off-by: Mark Salyzyn Bug: 150789066 Change-Id: I9d8ce5c6bea6c5b98549ea659f4ec22170041a90 --- 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 5ee71a64ede8..a68580e3153d 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -475,6 +475,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(dead_battery), POWER_SUPPLY_ATTR(voltage_fifo), POWER_SUPPLY_ATTR(cc_uah), + POWER_SUPPLY_ATTR(operating_freq), /* Capacity Estimation */ POWER_SUPPLY_ATTR(batt_ce_ctrl), POWER_SUPPLY_ATTR(batt_ce_full), diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 33917e419d1e..49595140ae77 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -340,6 +340,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_DEAD_BATTERY, POWER_SUPPLY_PROP_VOLTAGE_FIFO, POWER_SUPPLY_PROP_CC_UAH, + POWER_SUPPLY_PROP_OPERATING_FREQ, /* Capacity Estimation */ POWER_SUPPLY_PROP_BATT_CE_CTRL, POWER_SUPPLY_PROP_CHARGE_FULL_ESTIMATE,