summaryrefslogtreecommitdiff
path: root/test/charge_manager.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-07-10 16:08:57 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-13 03:18:38 +0000
commit10dc22867f8a81c2bf72d2a009b560064d5e1170 (patch)
tree0763c8727cc2d1d94ff9d23d23b05dd3094aa54e /test/charge_manager.c
parent16d40b0b3c567a5e18ea28469a09f860819d3fdd (diff)
downloadchrome-ec-10dc22867f8a81c2bf72d2a009b560064d5e1170.tar.gz
cleanup: remove board function callback on charge override timeoutrelease-R45-7262.B
Remove board function callback on charge override timeout, since the implementation should be common to all boards: send host event. This function is called when a power swap fails during an issued charge override and notifies the host so that it is aware that the power swap did not succeed. BUG=none BRANCH=smaug TEST=make -j buildall Change-Id: Ia2a078a17aef6b302fd2b9fd21a5a92c628fd7db Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/284923 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'test/charge_manager.c')
-rw-r--r--test/charge_manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/charge_manager.c b/test/charge_manager.c
index 8bfa8e2646..1941af19c7 100644
--- a/test/charge_manager.c
+++ b/test/charge_manager.c
@@ -36,6 +36,11 @@ static unsigned int charge_port_to_reject = CHARGE_PORT_NONE;
static int new_power_request[CONFIG_USB_PD_PORT_COUNT];
static int power_role[CONFIG_USB_PD_PORT_COUNT];
+/* Callback function from charge_manager to send host event */
+void pd_send_host_event(int mask)
+{
+}
+
/* Callback functions called by CM on state change */
void board_set_charge_limit(int charge_ma)
{