Commit 63157d99 authored by Mark Brown's avatar Mark Brown

ASoC: mt8365: Make non-exported functions static

The compilers warn if functions without a prototype are not static so add
appropriate static declarations.
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Reviewed-by: default avatarAlexandre Mergnat <amergnat@baylibre.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240907-asoc-fix-mt8365-build-v1-4-7ad0bac20161@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3e61df7d
...@@ -295,7 +295,7 @@ int mt8365_afe_disable_afe_on(struct mtk_base_afe *afe) ...@@ -295,7 +295,7 @@ int mt8365_afe_disable_afe_on(struct mtk_base_afe *afe)
return 0; return 0;
} }
int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1) static int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
{ {
if (apll1) if (apll1)
regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE, regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
...@@ -307,7 +307,7 @@ int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1) ...@@ -307,7 +307,7 @@ int mt8365_afe_hd_engen_enable(struct mtk_base_afe *afe, bool apll1)
return 0; return 0;
} }
int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1) static int mt8365_afe_hd_engen_disable(struct mtk_base_afe *afe, bool apll1)
{ {
if (apll1) if (apll1)
regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE, regmap_update_bits(afe->regmap, AFE_HD_ENGEN_ENABLE,
......
...@@ -170,7 +170,7 @@ bool mt8365_afe_channel_supported(unsigned int channel, unsigned int id) ...@@ -170,7 +170,7 @@ bool mt8365_afe_channel_supported(unsigned int channel, unsigned int id)
return false; return false;
} }
bool mt8365_afe_clk_group_44k(int sample_rate) static bool mt8365_afe_clk_group_44k(int sample_rate)
{ {
if (sample_rate == 11025 || if (sample_rate == 11025 ||
sample_rate == 22050 || sample_rate == 22050 ||
...@@ -182,7 +182,7 @@ bool mt8365_afe_clk_group_44k(int sample_rate) ...@@ -182,7 +182,7 @@ bool mt8365_afe_clk_group_44k(int sample_rate)
return false; return false;
} }
bool mt8365_afe_clk_group_48k(int sample_rate) static bool mt8365_afe_clk_group_48k(int sample_rate)
{ {
return (!mt8365_afe_clk_group_44k(sample_rate)); return (!mt8365_afe_clk_group_44k(sample_rate));
} }
...@@ -496,7 +496,7 @@ static int mt8365_afe_configure_cm(struct mtk_base_afe *afe, ...@@ -496,7 +496,7 @@ static int mt8365_afe_configure_cm(struct mtk_base_afe *afe,
return 0; return 0;
} }
int mt8365_afe_fe_startup(struct snd_pcm_substream *substream, static int mt8365_afe_fe_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
...@@ -714,7 +714,7 @@ static int mt8365_afe_fe_prepare(struct snd_pcm_substream *substream, ...@@ -714,7 +714,7 @@ static int mt8365_afe_fe_prepare(struct snd_pcm_substream *substream,
return 0; return 0;
} }
int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd, static int mt8365_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai) struct snd_soc_dai *dai)
{ {
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
......
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