power: supply: act8945a_charger: Add status change update support
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 25 Aug 2016 07:19:53 +0000 (15:19 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 31 Aug 2016 14:46:57 +0000 (16:46 +0200)
commita09209acd6a808794bdd7866af3678d1fd1d90e7
tree1644d3d2ba406ec0f1e61b63125f166ace810826
parent1f0ba4067af4bda55b7304e74fc20a245912b728
power: supply: act8945a_charger: Add status change update support

Add the charger status change interrupt support, it will report
the power supply changed event.

This interrupt is generated by one of the conditions as below:
 - the state machine jumps out of or into the EOC state
 - the CHGIN input voltage goes out of or into the valid range.
 - the battery temperature goes out of or into the valid range.
 - the PRECHARGE time-out occurs.
 - the total charge time-out occurs.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/act8945a_charger.c