Skip to content

Commit dc2d01c

Browse files
ujfalusibroonie
authored andcommitted
ASoC: Intel: bytcr_rt5640: Make rt5640_jack_gpio/rt5640_jack2_gpio static
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: 9ba0085 ("ASoC: Intel: bytcr_rt5640: Add support for HP Elite Pad 1000G2 jack-detect") Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2d02e7d commit dc2d01c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/intel/boards/bytcr_rt5640.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,14 +465,14 @@ static struct snd_soc_jack_pin rt5640_pins2[] = {
465465
},
466466
};
467467

468-
struct snd_soc_jack_gpio rt5640_jack_gpio = {
468+
static struct snd_soc_jack_gpio rt5640_jack_gpio = {
469469
.name = "hp-detect",
470470
.report = SND_JACK_HEADSET,
471471
.invert = true,
472472
.debounce_time = 200,
473473
};
474474

475-
struct snd_soc_jack_gpio rt5640_jack2_gpio = {
475+
static struct snd_soc_jack_gpio rt5640_jack2_gpio = {
476476
.name = "hp2-detect",
477477
.report = SND_JACK_HEADSET,
478478
.invert = true,

0 commit comments

Comments
 (0)