summaryrefslogtreecommitdiff
path: root/common/audio_codec.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2019-10-03 10:39:24 +0800
committerCommit Bot <commit-bot@chromium.org>2019-10-03 12:14:50 +0000
commitbfaac2c2e9f55018edda489a1e04678685897b51 (patch)
tree9161527cfaf0164a40db9ca2f2d58f35c8152619 /common/audio_codec.c
parented8fc57175bce247f84476b972d781301001b7bf (diff)
downloadchrome-ec-bfaac2c2e9f55018edda489a1e04678685897b51.tar.gz
audio_codec: fix compile error
Fixes compile error: error: initialization of 'int (*)(struct host_cmd_handler_args *)' from incompatible pointer type 'enum ec_status (*)(struct host_cmd_handler_args *)' [-Werror=incompatible-pointer-types] Commit 83d793839 ("host_command: Change host command return value to enum ec_status") changes return code to enum ec_status for host commands. Changes the function pointers accordingly. BRANCH=none BUG=chromium:1004831 BUG=b:123268236 TEST=make BOARD=kukui_scp clean && make BOARD=kukui_scp -j Change-Id: I8d38cbd732746b3fc0098b22d1faa2f04716d275 Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1835881 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'common/audio_codec.c')
-rw-r--r--common/audio_codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/audio_codec.c b/common/audio_codec.c
index fde79b4129..3f7203ad15 100644
--- a/common/audio_codec.c
+++ b/common/audio_codec.c
@@ -84,7 +84,7 @@ static enum ec_status set_shm_addr(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
-static int (*sub_cmds[])(struct host_cmd_handler_args *) = {
+static enum ec_status (*sub_cmds[])(struct host_cmd_handler_args *) = {
[EC_CODEC_GET_CAPABILITIES] = get_capabilities,
[EC_CODEC_GET_SHM_ADDR] = get_shm_addr,
[EC_CODEC_SET_SHM_ADDR] = set_shm_addr,