power: smb347: notify board code of power changes
authorTodd Poynor <toddpoynor@google.com>
Tue, 3 Jul 2012 05:49:37 +0000 (22:49 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:51:10 +0000 (13:51 +0530)
commit9d8f8b6f7bd77aa30db7d4c20ca884b38a792c2a
tree41cd8e64289cd5977401b734dc12cb4de73dfc64
parent3246cbe595b80f0845f3ef36564c41e7dbe60c81
power: smb347: notify board code of power changes

smb347_battery power supply will use the supplied_to
provided by the board file in pdata, if any, and pass
along a power_supply_changed() for itself if provided.
The board file can use its external_power_changed callback
to be notified of changes in state of the smb347 mains, usb,
or battery supplies.

Change-Id: Idd08b7cc49c5f8c639907371b686fca255825079
Signed-off-by: Todd Poynor <toddpoynor@google.com>
drivers/power/smb347-charger.c
include/linux/power/smb347-charger.h