olpc_battery: Add an 'error' sysfs device that displays raw errors
authorAndres Salomon <dilinger@collabora.co.uk>
Tue, 30 Jun 2009 06:15:26 +0000 (02:15 -0400)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Tue, 30 Jun 2009 22:48:37 +0000 (02:48 +0400)
commit144bbeaedc53290eab21da82ce1cb5faefd14374
treebbcbe31427ae566955323a3f988bb0f8569c49ff
parentb294a290d24d1196d68399cc3a9b8c50bfb55abd
olpc_battery: Add an 'error' sysfs device 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) with a separate
error sysfs file.

Signed-off-by: Andres Salomon <dilinger@collabora.co.uk>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/olpc_battery.c