CHROMIUM: charger-manager: Move temperature thresholds to pdata
authorSimon Glass <sjg@chromium.org>
Sun, 3 Feb 2013 22:45:00 +0000 (14:45 -0800)
committerChromeBot <chrome-bot@google.com>
Tue, 26 Feb 2013 01:04:51 +0000 (17:04 -0800)
commit9c436777d52df24d02544b4a70755503efee8e4a
tree194d622ae9e65bb04af9cfe25230e993b43c3f82
parent79062ec6de8e7aad245ac35b3ae12e488fab0353
CHROMIUM: charger-manager: Move temperature thresholds to pdata

Rather than require a function to handle temperature thresholds,
specify the thresholds so that charger-manager can do the right thing
automatically. This is is easier for clients to use, and more
device-tree-friendly

BUG=chrome-os-partner:10617
TEST=build and boot to kernel prompt on snow
See that charger-manager works as before. There is currently no test
for temperature thresholds, so I manually printed them out after a
later change to see that they are correct.
Change-Id: Ide0efff77c3c4e7bd468abf9df3b80884014e28d
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/43016
Reviewed-by: Benson Leung <bleung@chromium.org>
arch/arm/mach-exynos/setup-charger.c
drivers/power/charger-manager.c
include/linux/power/charger-manager.h