]> git.karo-electronics.de Git - linux-beck.git/commit
mfd: ab8500-sysctrl: Only reboot into charging mode if battery type is known
authorJonas Aaberg <jonas.aberg@stericsson.com>
Wed, 17 Aug 2011 13:58:52 +0000 (15:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 4 Feb 2013 08:28:44 +0000 (08:28 +0000)
commit0903940dcddcaa3f567a1a2308b0c55e2ce0643b
treeaa0caeaaeb211105560edc2d23e09ec1aff3ad64
parent7c34d7c2b54818078678a6507ce9a79c3d479243
mfd: ab8500-sysctrl: Only reboot into charging mode if battery type is known

When a charger is connected, we usually want AB8500 based systems to
reboot into charging-only mode. However, if the battery type cannot
be identified this would be futile, so we'll just shut the system
down instead.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
drivers/mfd/ab8500-sysctrl.c