From 1b3d52f529463db7fa12e16b432c0fa3dd479018 Mon Sep 17 00:00:00 2001 From: Sahil Chandna Date: Tue, 22 Jan 2019 12:06:15 +0530 Subject: [PATCH] ANDROID: GKI: power_supply: Add DC_RESET power-supply property Add property POWER_SUPPLY_PROP_DC_RESET to notify the removal of wireless charger. Signed-off-by: Sahil Chandna Signed-off-by: Guru Das Srinagesh (cherry picked from commit eb8871a6939acf76c0cb68d04c046b72006579c9) Signed-off-by: Mark Salyzyn Bug: 150789066 Change-Id: I7964953ee558bc18392eec57e2d1f6a94bd866f5 --- 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 e0f7a1ed3791..8a4d97b657f4 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -455,6 +455,7 @@ static struct device_attribute power_supply_attrs[] = { POWER_SUPPLY_ATTR(voltage_vph), POWER_SUPPLY_ATTR(chip_version), POWER_SUPPLY_ATTR(therm_icl_limit), + POWER_SUPPLY_ATTR(dc_reset), /* 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 95b471b09c53..41f591837ef6 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -327,6 +327,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_VOLTAGE_VPH, POWER_SUPPLY_PROP_CHIP_VERSION, POWER_SUPPLY_PROP_THERM_ICL_LIMIT, + POWER_SUPPLY_PROP_DC_RESET, /* Charge pump properties */ POWER_SUPPLY_PROP_CP_STATUS1, POWER_SUPPLY_PROP_CP_STATUS2,