diff mbox series

ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio static

Message ID 20210825122519.3364-1-peter.ujfalusi@linux.intel.com
State Accepted
Commit dc2d01c754c378a4748ac72c5516d45da7640123
Headers show
Series ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio static | expand

Commit Message

Peter Ujfalusi Aug. 25, 2021, 12:25 p.m. UTC
Marking the two jack gpio as static fixes the following Sparse errors:
sound/soc/intel/boards/bytcr_rt5640.c:468:26: error: symbol 'rt5640_jack_gpio' was not declared. Should it be static?
sound/soc/intel/boards/bytcr_rt5640.c:475:26: error: symbol 'rt5640_jack2_gpio' was not declared. Should it be static?

Fixes: 9ba00856686ad ("ASoC: Intel: bytcr_rt5640: Add support for HP Elite Pad 1000G2 jack-detect")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
---
 sound/soc/intel/boards/bytcr_rt5640.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown Aug. 25, 2021, 3:18 p.m. UTC | #1
On Wed, 25 Aug 2021 15:25:19 +0300, Peter Ujfalusi wrote:
> Marking the two jack gpio as static fixes the following Sparse errors:
> sound/soc/intel/boards/bytcr_rt5640.c:468:26: error: symbol 'rt5640_jack_gpio' was not declared. Should it be static?
> sound/soc/intel/boards/bytcr_rt5640.c:475:26: error: symbol 'rt5640_jack2_gpio' was not declared. Should it be static?
> 
> 
> 
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio static
      commit: dc2d01c754c378a4748ac72c5516d45da7640123

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
diff mbox series

Patch

diff --git a/sound/soc/intel/boards/bytcr_rt5640.c b/sound/soc/intel/boards/bytcr_rt5640.c
index 05667a33d919..a6e837290c7d 100644
--- a/sound/soc/intel/boards/bytcr_rt5640.c
+++ b/sound/soc/intel/boards/bytcr_rt5640.c
@@ -465,14 +465,14 @@  static struct snd_soc_jack_pin rt5640_pins2[] = {
 	},
 };
 
-struct snd_soc_jack_gpio rt5640_jack_gpio = {
+static struct snd_soc_jack_gpio rt5640_jack_gpio = {
 	.name = "hp-detect",
 	.report = SND_JACK_HEADSET,
 	.invert = true,
 	.debounce_time = 200,
 };
 
-struct snd_soc_jack_gpio rt5640_jack2_gpio = {
+static struct snd_soc_jack_gpio rt5640_jack2_gpio = {
 	.name = "hp2-detect",
 	.report = SND_JACK_HEADSET,
 	.invert = true,