Commit df3d6390 authored by Zou Wei's avatar Zou Wei Committed by Mark Brown

ASoC: mediatek: mt8192: Make some symbols static

Fix the following sparse warnings:

./mt8192-dai-i2s.c:2040:5: warning: symbol 'mt8192_dai_i2s_get_share' was not declared. Should it be static?
./mt8192-dai-i2s.c:2060:5: warning: symbol 'mt8192_dai_i2s_set_priv' was not declared. Should it be static?
./mt8192-afe-gpio.c:15:16: warning: symbol 'aud_pinctrl' was not declared. Should it be static?
./mt8192-afe-pcm.c:70:5: warning: symbol 'mt8192_get_memif_pbuf_size' was not declared. Should it be static?
./mt8192-afe-pcm.c:2137:39: warning: symbol 'mt8192_afe_component' was not declared. Should it be static?
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Acked-by: default avatarJiaxin Yu <jiaxin.yu@mediatek.com>
Link: https://lore.kernel.org/r/1604579287-25251-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8bfe8c96
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "mt8192-afe-common.h" #include "mt8192-afe-common.h"
#include "mt8192-afe-gpio.h" #include "mt8192-afe-gpio.h"
struct pinctrl *aud_pinctrl; static struct pinctrl *aud_pinctrl;
enum mt8192_afe_gpio { enum mt8192_afe_gpio {
MT8192_AFE_GPIO_DAT_MISO_OFF, MT8192_AFE_GPIO_DAT_MISO_OFF,
......
...@@ -67,7 +67,7 @@ static int mt8192_irq_fs(struct snd_pcm_substream *substream, unsigned int rate) ...@@ -67,7 +67,7 @@ static int mt8192_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
return mt8192_general_rate_transform(afe->dev, rate); return mt8192_general_rate_transform(afe->dev, rate);
} }
int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream) static int mt8192_get_memif_pbuf_size(struct snd_pcm_substream *substream)
{ {
struct snd_pcm_runtime *runtime = substream->runtime; struct snd_pcm_runtime *runtime = substream->runtime;
...@@ -2134,7 +2134,7 @@ static int mt8192_afe_component_probe(struct snd_soc_component *component) ...@@ -2134,7 +2134,7 @@ static int mt8192_afe_component_probe(struct snd_soc_component *component)
return mtk_afe_add_sub_dai_control(component); return mtk_afe_add_sub_dai_control(component);
} }
const struct snd_soc_component_driver mt8192_afe_component = { static const struct snd_soc_component_driver mt8192_afe_component = {
.name = AFE_PCM_NAME, .name = AFE_PCM_NAME,
.probe = mt8192_afe_component_probe, .probe = mt8192_afe_component_probe,
.pointer = mtk_afe_pcm_pointer, .pointer = mtk_afe_pcm_pointer,
......
...@@ -2037,7 +2037,7 @@ static const struct mtk_afe_i2s_priv mt8192_i2s_priv[DAI_I2S_NUM] = { ...@@ -2037,7 +2037,7 @@ static const struct mtk_afe_i2s_priv mt8192_i2s_priv[DAI_I2S_NUM] = {
}, },
}; };
int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe) static int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe)
{ {
struct mt8192_afe_private *afe_priv = afe->platform_priv; struct mt8192_afe_private *afe_priv = afe->platform_priv;
const struct device_node *of_node = afe->dev->of_node; const struct device_node *of_node = afe->dev->of_node;
...@@ -2057,7 +2057,7 @@ int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe) ...@@ -2057,7 +2057,7 @@ int mt8192_dai_i2s_get_share(struct mtk_base_afe *afe)
return 0; return 0;
} }
int mt8192_dai_i2s_set_priv(struct mtk_base_afe *afe) static int mt8192_dai_i2s_set_priv(struct mtk_base_afe *afe)
{ {
int i; int i;
int ret; int ret;
......
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