summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-09-23 22:33:13 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-24 20:12:58 +0000
commit87798ac80d69e1ec173c94eaa76e4a142cb16ad6 (patch)
tree456a4e0f4a7dee1ef2aece21c578b83b3ca587a1
parent465c9dc87a353f48b969da0631c4fd2b6df32a4f (diff)
downloadchrome-ec-87798ac80d69e1ec173c94eaa76e4a142cb16ad6.tar.gz
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 <tomhughes@chromium.org> Change-Id: I14e850f5e2ace5c3f3e59c7bc2aa90b3eaf92a9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182620 Reviewed-by: Edward Hill <ecgh@chromium.org>
-rw-r--r--chip/mt_scp/mt8183/ipi.c2
1 files changed, 1 insertions, 1 deletions
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));