CHROMIUM: charger-manager: Allow battery to provide temperature
authorSimon Glass <sjg@chromium.org>
Sun, 17 Jun 2012 17:38:45 +0000 (10:38 -0700)
committerChromeBot <chrome-bot@google.com>
Sat, 9 Feb 2013 19:46:32 +0000 (11:46 -0800)
commit9db7c878ce602b9a84bb5426fb7d9daa4693c081
treee1fc4ecb2f23031d128b934332e8fb3c5ebaa135
parentdc8f0c8ae1d7b79232c44ccde73eaa7823465776
CHROMIUM: charger-manager: Allow battery to provide temperature

In some systems the we cannot obtain the cell temperature using the charger
or an ADC; we must ask the battery (fuel cell) since it has thermistors
which are closer to the battery and thus give a more accurate reading.

Add this feature to charger-manager.

BUG=chrome-os-partner:10617
TEST=build and boot to kernel prompt on snow
See that we obtain the correct temperature now (from the battery)

Change-Id: I2f2844632b7ef7b1179878cc769bcbe751c4c708
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/40169
Reviewed-by: Sameer Nanda <snanda@chromium.org>
drivers/power/charger-manager.c
include/linux/power/charger-manager.h