summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-09-28 22:49:34 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-29 16:58:51 +0000
commit24937cec544935e50fa691c1187f2e4154cde95a (patch)
treee59775b9f1d3551b0c49454d02e581bc6a95849d
parent2ccb1e3e8b04a78ad0091a82473164a5b093ca0f (diff)
downloadchrome-ec-24937cec544935e50fa691c1187f2e4154cde95a.tar.gz
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 <tomhughes@chromium.org> Change-Id: Ief6c5ecb4a6850a5560357f6f9c7cb7c5bd22797 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193272 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--chip/ish/host_command_heci.c2
1 files changed, 1 insertions, 1 deletions
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));