diff options
author | Jonghwa Lee <jonghwa3.lee@samsung.com> | 2013-12-18 15:42:34 +0900 |
---|---|---|
committer | Anton Vorontsov <anton@enomsg.org> | 2013-12-23 17:09:09 -0800 |
commit | 5c49a6256bed52f639ed70d252b1c91d1ab899d6 (patch) | |
tree | 8c4d8d6e4fcadc81de02dea26f1a643a2db59399 /drivers/power/tps65090-charger.c | |
parent | d36240d26025bec95f3499e2401a56db98d9f01c (diff) | |
download | op-kernel-dev-5c49a6256bed52f639ed70d252b1c91d1ab899d6.zip op-kernel-dev-5c49a6256bed52f639ed70d252b1c91d1ab899d6.tar.gz |
charger-manager: Modify the way of checking battery's temperature
Charger-manager driver used to check battery temperature through the
callback function passed by platform data. Unfortunatley, without that
pre-defined callback function, charger-manager can't get battery's
temperature at all. Also passing callback function through platform data
ruins DT support for charger-manager.
This patch mondifies charger-manager driver to get temperature of battery
without pre-defined callback function. Now, charger-manager can use either
of battery thermometer in fuel-gauge and ouside of battery. It uses
thermal framework interface for outer thermometer if thermal fw is
enabled. Otherwise, it tries to use fuel-gauge's through the power supply
interface.
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
Diffstat (limited to 'drivers/power/tps65090-charger.c')
0 files changed, 0 insertions, 0 deletions