samus_pd: Respond to EC_CMD_PD_HOST_EVENT_STATUS with correct data type

EC_CMD_PD_HOST_EVENT_STATUS should respond with
ec_response_host_event_status, not ec_response_pd_status.

TEST=Manual on Samus. Send EC_CMD_PD_HOST_EVENT_STATUS, verify that
resonse is four bytes.
BUG=chrome-os-partner:35510
BRANCH=Samus

Change-Id: I1a38591c7825f7e71c1fde8f3c1cab4be7852971
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/241193
Reviewed-by: Alec Berg <alecaberg@chromium.org>
This commit is contained in:
Shawn Nematbakhsh
2015-01-15 18:17:09 -08:00
committed by ChromeOS Commit Bot
parent fe294979d6
commit e4073fdb31

View File

@@ -739,7 +739,7 @@ DECLARE_HOST_COMMAND(EC_CMD_PD_EXCHANGE_STATUS, ec_status_host_cmd,
static int host_event_status_host_cmd(struct host_cmd_handler_args *args)
{
struct ec_response_pd_status *r = args->response;
struct ec_response_host_event_status *r = args->response;
/* Clear host event bit to avoid sending more unnecessary events */
atomic_clear(&(pd_status.status), PD_STATUS_HOST_EVENT);