commit | e6bee116fbcc0721e35658beb3c65fdab4dde057 | [log] [tgz] |
---|---|---|
author | Willie Ruan <wruan@codeaurora.org> | Sun Nov 06 15:52:52 2011 -0800 |
committer | Jay Chokshi <jchokshi@codeaurora.org> | Wed Dec 07 19:00:30 2011 -0800 |
tree | f5298ecb0eed211c6dff4960d6507bcb2026d624 | |
parent | b9599f1d4d913ecc85cdd0ebe16dee8210120753 [diff] |
power: core: add power supply APIs Add two APIs, 1) set_current_limit API and 2) set_charging_by. set_current_limit api is used for external control, such as for USB driver to tell a charger driver the maximum current to draw. set_charging_by is used to change the state of the charger. Change-Id: I147eab37836b54627ca1458167eb117ba3eacd7a Signed-off-by: Willie Ruan <wruan@codeaurora.org>