summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@debian.org>2008-09-04 15:13:37 -0400
committerAndres Salomon <dilinger@debian.org>2008-09-04 15:13:37 -0400
commit222f7583b4602355bf507280ff466a9c19090729 (patch)
tree494f121c03ed41f0f099b22f2e84ff96666a2f5f /include/linux
parentde9342825d8b15a107e262ed719fe559157d834b (diff)
downloadlwn-222f7583b4602355bf507280ff466a9c19090729.tar.gz
lwn-222f7583b4602355bf507280ff466a9c19090729.zip
OLPC: power_supply: add an 'error' property that displays raw errors
Grab the error code from EC_BAT_ERRCODE and let the user see it (rather than attempting to decode it as we do with PROP_HEALTH). Signed-off-by: Andres Salomon <dilinger@debian.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/power_supply.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index 266111f224b0..a45864204b5c 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -93,6 +93,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_TIME_TO_FULL_NOW,
POWER_SUPPLY_PROP_TIME_TO_FULL_AVG,
POWER_SUPPLY_PROP_ACCUM_CURRENT,
+ POWER_SUPPLY_PROP_ERROR,
/* Properties of type `const char *' */
POWER_SUPPLY_PROP_MODEL_NAME,
POWER_SUPPLY_PROP_MANUFACTURER,