summaryrefslogtreecommitdiff
path: root/common/audio_codec_wov.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_wov.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_wov.c')
-rw-r--r--common/audio_codec_wov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/audio_codec_wov.c b/common/audio_codec_wov.c
index 141403f783..f84e45f342 100644
--- a/common/audio_codec_wov.c
+++ b/common/audio_codec_wov.c
@@ -292,7 +292,7 @@ static enum ec_status wov_read_audio(struct host_cmd_handler_args *args)
}
#endif /* CONFIG_AUDIO_CODEC_CAP_WOV_AUDIO_SHM */
-static int (*sub_cmds[])(struct host_cmd_handler_args *) = {
+static enum ec_status (*sub_cmds[])(struct host_cmd_handler_args *) = {
#ifdef CONFIG_AUDIO_CODEC_CAP_WOV_LANG_SHM
[EC_CODEC_WOV_SET_LANG_SHM] = wov_set_lang_shm,
#else