Commit 52194513 authored by YueHaibing's avatar YueHaibing Committed by Mark Brown

ASoC: mediatek: Make some symbols static

Fix sparse warnings:

sound/soc/mediatek/common/mtk-btcvsd.c:410:5: warning: symbol 'mtk_btcvsd_write_to_bt' was not declared. Should it be static?
sound/soc/mediatek/common/mtk-btcvsd.c:698:9: warning: symbol 'mtk_btcvsd_snd_read' was not declared. Should it be static?
sound/soc/mediatek/common/mtk-btcvsd.c:779:9: warning: symbol 'mtk_btcvsd_snd_write' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 190d9e03
...@@ -407,11 +407,11 @@ static int mtk_btcvsd_read_from_bt(struct mtk_btcvsd_snd *bt, ...@@ -407,11 +407,11 @@ static int mtk_btcvsd_read_from_bt(struct mtk_btcvsd_snd *bt,
return 0; return 0;
} }
int mtk_btcvsd_write_to_bt(struct mtk_btcvsd_snd *bt, static int mtk_btcvsd_write_to_bt(struct mtk_btcvsd_snd *bt,
enum bt_sco_packet_len packet_type, enum bt_sco_packet_len packet_type,
unsigned int packet_length, unsigned int packet_length,
unsigned int packet_num, unsigned int packet_num,
unsigned int blk_size) unsigned int blk_size)
{ {
unsigned int i; unsigned int i;
unsigned long flags; unsigned long flags;
...@@ -695,9 +695,9 @@ static int wait_for_bt_irq(struct mtk_btcvsd_snd *bt, ...@@ -695,9 +695,9 @@ static int wait_for_bt_irq(struct mtk_btcvsd_snd *bt,
return 0; return 0;
} }
ssize_t mtk_btcvsd_snd_read(struct mtk_btcvsd_snd *bt, static ssize_t mtk_btcvsd_snd_read(struct mtk_btcvsd_snd *bt,
char __user *buf, char __user *buf,
size_t count) size_t count)
{ {
ssize_t read_size = 0, read_count = 0, cur_read_idx, cont; ssize_t read_size = 0, read_count = 0, cur_read_idx, cont;
unsigned int cur_buf_ofs = 0; unsigned int cur_buf_ofs = 0;
...@@ -776,9 +776,9 @@ ssize_t mtk_btcvsd_snd_read(struct mtk_btcvsd_snd *bt, ...@@ -776,9 +776,9 @@ ssize_t mtk_btcvsd_snd_read(struct mtk_btcvsd_snd *bt,
return read_count; return read_count;
} }
ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt, static ssize_t mtk_btcvsd_snd_write(struct mtk_btcvsd_snd *bt,
char __user *buf, char __user *buf,
size_t count) size_t count)
{ {
int written_size = count, avail = 0, cur_write_idx, write_size, cont; int written_size = count, avail = 0, cur_write_idx, write_size, cont;
unsigned int cur_buf_ofs = 0; unsigned int cur_buf_ofs = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment