FROMLIST: power_supply: Add additional health properties to the header
Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. Bug: 149071038 Test: Builds Link: https://lore.kernel.org/linux-pm/20200116175039.1317-3-dmurphy@ti.com/ Signed-off-by: Dan Murphy <dmurphy@ti.com> Tested-by: Guru Das Srinagesh <gurus@codeaurora.org> Signed-off-by: Sandeep Patil <sspatil@google.com> Change-Id: I5a99577e8c8c38c2ea10a339223c177d18c93d37
This commit is contained in:
committed by
Sandeep Patil
parent
5bfaff7c1c
commit
14dae98e26
@@ -190,7 +190,7 @@ Description:
|
|||||||
Valid values: "Unknown", "Good", "Overheat", "Dead",
|
Valid values: "Unknown", "Good", "Overheat", "Dead",
|
||||||
"Over voltage", "Unspecified failure", "Cold",
|
"Over voltage", "Unspecified failure", "Cold",
|
||||||
"Watchdog timer expire", "Safety timer expire",
|
"Watchdog timer expire", "Safety timer expire",
|
||||||
"Over current"
|
"Over current", "Warm", "Cool", "Hot"
|
||||||
|
|
||||||
What: /sys/class/power_supply/<supply_name>/precharge_current
|
What: /sys/class/power_supply/<supply_name>/precharge_current
|
||||||
Date: June 2017
|
Date: June 2017
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ static const char * const power_supply_charge_type_text[] = {
|
|||||||
static const char * const power_supply_health_text[] = {
|
static const char * const power_supply_health_text[] = {
|
||||||
"Unknown", "Good", "Overheat", "Dead", "Over voltage",
|
"Unknown", "Good", "Overheat", "Dead", "Over voltage",
|
||||||
"Unspecified failure", "Cold", "Watchdog timer expire",
|
"Unspecified failure", "Cold", "Watchdog timer expire",
|
||||||
"Safety timer expire", "Over current"
|
"Safety timer expire", "Over current", "Warm", "Cool", "Hot"
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char * const power_supply_technology_text[] = {
|
static const char * const power_supply_technology_text[] = {
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ enum {
|
|||||||
POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE,
|
POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE,
|
||||||
POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,
|
POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE,
|
||||||
POWER_SUPPLY_HEALTH_OVERCURRENT,
|
POWER_SUPPLY_HEALTH_OVERCURRENT,
|
||||||
|
POWER_SUPPLY_HEALTH_WARM,
|
||||||
|
POWER_SUPPLY_HEALTH_COOL,
|
||||||
|
POWER_SUPPLY_HEALTH_HOT,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user