From 10dc22867f8a81c2bf72d2a009b560064d5e1170 Mon Sep 17 00:00:00 2001 From: Alec Berg Date: Fri, 10 Jul 2015 16:08:57 -0700 Subject: cleanup: remove board function callback on charge override timeout 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 Reviewed-on: https://chromium-review.googlesource.com/284923 Reviewed-by: Vincent Palatin --- test/charge_manager.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/charge_manager.c') 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) { -- cgit v1.2.1