power_supply: Add watchdog and safety timer expiries under PROP_HEALTH_*
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Fri, 30 Nov 2012 08:27:46 +0000 (13:57 +0530)
committerAnton Vorontsov <anton@enomsg.org>
Sun, 6 Jan 2013 02:51:18 +0000 (18:51 -0800)
commita05be99174edc9f258ee68140b71b9645ad977ee
tree74aecaa48296941932f6e295742595712cd1f1a6
parenta9672e1356471b0a1d63a303cc1dfc53b739efb9
power_supply: Add watchdog and safety timer expiries under PROP_HEALTH_*

As most of the charger chips come with two kinds of safety features
related to timing:

1. Watchdog Timer (interms of seconds/mins)
2. Safety Timer (interms of hours)

This patch adds these to fault causes in POWER_SUPPLY_PROP_HEALTH_* enums
so that whenever there is either watchdog timeout or safety timer timeout
driver could notify the user space accurately about the fault and will
also be helpful for debug.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h