summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2017-01-28 09:32:17 -0800
committerNicholas Troast <ntroast@codeaurora.org>2017-02-10 16:16:47 -0800
commitd86ba09f57f6c6faf0ab66a80ad3bf3380dfd81c (patch)
treee05ccd3745aefcabb6b87626f4dea5934e068d85
parentc9329b856ecbda6a908e405949a31ca16db43d2d (diff)
power_supply: add INPUT_VOLTAGE_SETTLED property
INPUT_VOLTAGE_SETTLED is the negotiated adapter voltage setting. Change-Id: I2ac529a77e8ed007c908c4f37eea718a80bc11d3 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
-rw-r--r--drivers/power/power_supply_sysfs.c1
-rw-r--r--include/linux/power_supply.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index a9bb96df56c9..7d594c9c9e53 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -239,6 +239,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(input_current_max),
POWER_SUPPLY_ATTR(input_current_trim),
POWER_SUPPLY_ATTR(input_current_settled),
+ POWER_SUPPLY_ATTR(input_voltage_settled),
POWER_SUPPLY_ATTR(bypass_vchg_loop_debouncer),
POWER_SUPPLY_ATTR(charge_counter_shadow),
POWER_SUPPLY_ATTR(hi_power),
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 41568e45c024..753f90b1fec7 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -191,6 +191,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_INPUT_CURRENT_MAX,
POWER_SUPPLY_PROP_INPUT_CURRENT_TRIM,
POWER_SUPPLY_PROP_INPUT_CURRENT_SETTLED,
+ POWER_SUPPLY_PROP_INPUT_VOLTAGE_SETTLED,
POWER_SUPPLY_PROP_VCHG_LOOP_DBC_BYPASS,
POWER_SUPPLY_PROP_CHARGE_COUNTER_SHADOW,
POWER_SUPPLY_PROP_HI_POWER,