summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-10-04 21:06:22 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-05 16:47:50 +0000
commitcac9cc4b472547f84efd7afb551a6af60f4e130f (patch)
treef7e1859e7a6d519aebb19a398bf844e836a5fe12 /chip
parent228cc80d943d33fe31007736da45db8f1a0ac15d (diff)
downloadchrome-ec-cac9cc4b472547f84efd7afb551a6af60f4e130f.tar.gz
chip/npcx: Fix enum type
clang reports that the enum types do not match: chip/npcx/lpc.c:967:9: error: implicit conversion from enumeration type 'enum ec_error_list' to different enumeration type 'enum ec_status' [-Werror,-Wenum-conversion] return EC_SUCCESS; common/power_button_x86.c:523: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=make CC=arm-none-eabi-clang BOARD=aleena Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I25d1526d58e1e8558153592be7174a8448c130f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3202998 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/npcx/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/npcx/lpc.c b/chip/npcx/lpc.c
index adf78b642d..4eee50d714 100644
--- a/chip/npcx/lpc.c
+++ b/chip/npcx/lpc.c
@@ -964,7 +964,7 @@ static enum ec_status lpc_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,
lpc_get_protocol_info,