diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-10-12 15:16:40 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-14 17:01:48 +0000 |
commit | 6003975a719df8440fb8da8ff7270eb6a3edc412 (patch) | |
tree | 7f13483082318b5cd88ad70bbabb285913df9a1a /chip | |
parent | d8c0f7e053b7cde435241d7a6e1cefd1f8d6ca92 (diff) | |
download | chrome-ec-6003975a719df8440fb8da8ff7270eb6a3edc412.tar.gz |
chip/mchp: Fix return type
When building with clang it warns:
chip/mchp/lpc.c:966: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=CC=clang make BOARD=reef_mchp
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: I680cea90f72d3743ef4b92e13e57e63557cba702
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3953490
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mchp/lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mchp/lpc.c b/chip/mchp/lpc.c index 4dc60098c0..da9b045b22 100644 --- a/chip/mchp/lpc.c +++ b/chip/mchp/lpc.c @@ -963,7 +963,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, EC_VER_MASK(0)); |