From 87798ac80d69e1ec173c94eaa76e4a142cb16ad6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Sep 2021 22:33:13 +0000 Subject: chip/mt_scp: Fix return type clang complains that the types do not match: chip/mt_scp/mt8183/ipi.c:349:9: error: implicit conversion from enumeration type 'enum ec_error_list' to different enumeration type 'enum ec_status' [-Werror,-Wenum-conversion] BRANCH=none BUG=b:172020503 TEST=make buildall -j TEST=CC=arm-none-eabi-clang make BOARD=kukui_scp -j Signed-off-by: Tom Hughes Change-Id: I14e850f5e2ace5c3f3e59c7bc2aa90b3eaf92a9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182620 Reviewed-by: Edward Hill --- chip/mt_scp/mt8183/ipi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chip/mt_scp/mt8183/ipi.c b/chip/mt_scp/mt8183/ipi.c index db371f02b4..e6a79fca9a 100644 --- a/chip/mt_scp/mt8183/ipi.c +++ b/chip/mt_scp/mt8183/ipi.c @@ -346,7 +346,7 @@ static enum ec_status ipi_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, ipi_get_protocol_info, EC_VER_MASK(0)); -- cgit v1.2.1