* [PATCH][next] ASoC: TSCS42xx: make functions pll_event and dac_event static
@ 2018-01-08 23:14 Colin King
2018-01-09 15:52 ` Steven Eckhoff
2018-01-09 17:43 ` Applied "ASoC: TSCS42xx: make functions pll_event and dac_event static" to the asoc tree Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2018-01-08 23:14 UTC (permalink / raw)
To: Steven Eckhoff, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, alsa-devel
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The functions pll_event and dac_event are local to the source and do
not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'pll_event' was not declared. Should it be static?
symbol 'dac_event' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
sound/soc/codecs/tscs42xx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/tscs42xx.c b/sound/soc/codecs/tscs42xx.c
index eedd600875e5..9e8155766ea9 100644
--- a/sound/soc/codecs/tscs42xx.c
+++ b/sound/soc/codecs/tscs42xx.c
@@ -355,8 +355,8 @@ static int dapm_micb_event(struct snd_soc_dapm_widget *w,
return 0;
}
-int pll_event(struct snd_soc_dapm_widget *w,
- struct snd_kcontrol *kcontrol, int event)
+static int pll_event(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
int ret;
@@ -369,8 +369,8 @@ int pll_event(struct snd_soc_dapm_widget *w,
return ret;
}
-int dac_event(struct snd_soc_dapm_widget *w,
- struct snd_kcontrol *kcontrol, int event)
+static int dac_event(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
struct tscs42xx *tscs42xx = snd_soc_codec_get_drvdata(codec);
--
2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH][next] ASoC: TSCS42xx: make functions pll_event and dac_event static
2018-01-08 23:14 [PATCH][next] ASoC: TSCS42xx: make functions pll_event and dac_event static Colin King
@ 2018-01-09 15:52 ` Steven Eckhoff
2018-01-09 17:43 ` Applied "ASoC: TSCS42xx: make functions pll_event and dac_event static" to the asoc tree Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Steven Eckhoff @ 2018-01-09 15:52 UTC (permalink / raw)
To: Colin King
Cc: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
alsa-devel, kernel-janitors, linux-kernel
On Mon, Jan 08, 2018 at 11:14:44PM +0000, Colin King wrote:
> The functions pll_event and dac_event are local to the source and do
> not need to be in global scope, so make them static.
This looks good to me. Thanks for catching this. You can add:
Reviewed-by: Steven Eckhoff <steven.eckhoff.opensource@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Applied "ASoC: TSCS42xx: make functions pll_event and dac_event static" to the asoc tree
2018-01-08 23:14 [PATCH][next] ASoC: TSCS42xx: make functions pll_event and dac_event static Colin King
2018-01-09 15:52 ` Steven Eckhoff
@ 2018-01-09 17:43 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2018-01-09 17:43 UTC (permalink / raw)
To: Colin Ian King
Cc: Mark Brown, Steven Eckhoff, Liam Girdwood, Mark Brown,
Jaroslav Kysela, Takashi Iwai, alsa-devel, kernel-janitors,
linux-kernel, alsa-devel
The patch
ASoC: TSCS42xx: make functions pll_event and dac_event static
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 3511108a790fc8942448556b82046d6de945b80f Mon Sep 17 00:00:00 2001
From: Colin Ian King <colin.king@canonical.com>
Date: Mon, 8 Jan 2018 23:14:44 +0000
Subject: [PATCH] ASoC: TSCS42xx: make functions pll_event and dac_event static
The functions pll_event and dac_event are local to the source and do
not need to be in global scope, so make them static.
Cleans up sparse warnings:
symbol 'pll_event' was not declared. Should it be static?
symbol 'dac_event' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Steven Eckhoff <steven.eckhoff.opensource@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/tscs42xx.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/tscs42xx.c b/sound/soc/codecs/tscs42xx.c
index 4a5b32a717f2..e7661d0315e6 100644
--- a/sound/soc/codecs/tscs42xx.c
+++ b/sound/soc/codecs/tscs42xx.c
@@ -355,8 +355,8 @@ static int dapm_micb_event(struct snd_soc_dapm_widget *w,
return 0;
}
-int pll_event(struct snd_soc_dapm_widget *w,
- struct snd_kcontrol *kcontrol, int event)
+static int pll_event(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
int ret;
@@ -369,8 +369,8 @@ int pll_event(struct snd_soc_dapm_widget *w,
return ret;
}
-int dac_event(struct snd_soc_dapm_widget *w,
- struct snd_kcontrol *kcontrol, int event)
+static int dac_event(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
{
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
struct tscs42xx *tscs42xx = snd_soc_codec_get_drvdata(codec);
--
2.15.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-09 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-08 23:14 [PATCH][next] ASoC: TSCS42xx: make functions pll_event and dac_event static Colin King
2018-01-09 15:52 ` Steven Eckhoff
2018-01-09 17:43 ` Applied "ASoC: TSCS42xx: make functions pll_event and dac_event static" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®