From 24937cec544935e50fa691c1187f2e4154cde95a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Sep 2021 22:49:34 +0000 Subject: chip/ish: Fix return type clang warns that the types do not match: chip/ish/host_command_heci.c:140:9: error: implicit conversion from enumeration type 'enum ec_error_list' to different enumeration type 'enum ec_status' [-Werror,-Wenum-conversion] return EC_SUCCESS; BRANCH=none BUG=b:172020503 TEST=none Signed-off-by: Tom Hughes Change-Id: Ief6c5ecb4a6850a5560357f6f9c7cb7c5bd22797 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193272 Reviewed-by: Daisuke Nojiri --- chip/ish/host_command_heci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip/ish/host_command_heci.c b/chip/ish/host_command_heci.c index 2fcab44b8b..de1485417b 100644 --- a/chip/ish/host_command_heci.c +++ b/chip/ish/host_command_heci.c @@ -137,7 +137,7 @@ static enum ec_status heci_get_protocol_info(struct host_cmd_handler_args *args) args->response_size = sizeof(*r); - return EC_SUCCESS; + return EC_RES_SUCCESS; } DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO, heci_get_protocol_info, EC_VER_MASK(0)); -- cgit v1.2.1