projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aeb17d
)
ASoC: Intel: bytcr_rt5640: Mark hp_elitepad_1000g2_jack?_check functions static
author
Hans de Goede
<hdegoede@redhat.com>
Mon, 23 Aug 2021 11:04:32 +0000
(13:04 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 23 Aug 2021 15:41:05 +0000
(16:41 +0100)
The byt_rt5640_hp_elitepad_1000g2_jack?_check functions are only
used inside bytcr_rt5640.c, mark them as static.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link:
https://lore.kernel.org/r/20210823110432.64860-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/bytcr_rt5640.c
b/sound/soc/intel/boards/bytcr_rt5640.c
index 2f151ba80be5c9cdc8502abf13b83d8122c5400d..05667a33d9199a1e130e5e9d553429daec2b5fca 100644
(file)
--- a/
sound/soc/intel/boards/bytcr_rt5640.c
+++ b/
sound/soc/intel/boards/bytcr_rt5640.c
@@
-490,7
+490,7
@@
static const struct acpi_gpio_mapping byt_rt5640_hp_elitepad_1000g2_gpios[] = {
{ },
};
-int byt_rt5640_hp_elitepad_1000g2_jack1_check(void *data)
+
static
int byt_rt5640_hp_elitepad_1000g2_jack1_check(void *data)
{
struct byt_rt5640_private *priv = data;
int jack_status, mic_status;
@@
-506,7
+506,7
@@
int byt_rt5640_hp_elitepad_1000g2_jack1_check(void *data)
return SND_JACK_HEADSET;
}
-int byt_rt5640_hp_elitepad_1000g2_jack2_check(void *data)
+
static
int byt_rt5640_hp_elitepad_1000g2_jack2_check(void *data)
{
struct snd_soc_component *component = data;
int jack_status, report;