summaryrefslogtreecommitdiff
path: root/common/audio_codec_i2s_rx.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_i2s_rx.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_i2s_rx.c')
-rw-r--r--common/audio_codec_i2s_rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/audio_codec_i2s_rx.c b/common/audio_codec_i2s_rx.c
index b5c3be4926..700fc41024 100644
--- a/common/audio_codec_i2s_rx.c
+++ b/common/audio_codec_i2s_rx.c
@@ -84,7 +84,7 @@ static enum ec_status i2s_rx_set_bclk(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_I2S_RX_ENABLE] = i2s_rx_enable,
[EC_CODEC_I2S_RX_DISABLE] = i2s_rx_disable,
[EC_CODEC_I2S_RX_SET_SAMPLE_DEPTH] = i2s_rx_set_sample_depth,