[PATCH 10/12] ASoC: codecs: wm8903: Make wm8903_mic_detect() static
From: Amadeusz Sławiński
Date: Mon Oct 26 2026 - 16:25:50 EST
Now that all callers have been switched to snd_soc_component_set_jack(),
make wm8903_mic_detect() static and unexport it.
Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/codecs/wm8903.c | 6 +++---
sound/soc/codecs/wm8903.h | 5 -----
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index 25a488f589a7..9dbc295b0889 100644
--- a/sound/soc/codecs/wm8903.c
+++ b/sound/soc/codecs/wm8903.c
@@ -1598,8 +1598,9 @@ static int wm8903_hw_params(struct snd_pcm_substream *substream,
* micdet_cfg in the platform data. Using this function will force on
* the microphone bias for the device.
*/
-int wm8903_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack,
- int det, int shrt)
+static int wm8903_mic_detect(struct snd_soc_component *component,
+ struct snd_soc_jack *jack,
+ int det, int shrt)
{
struct wm8903_priv *wm8903 = snd_soc_component_get_drvdata(component);
int irq_mask = WM8903_MICDET_EINT | WM8903_MICSHRT_EINT;
@@ -1636,7 +1637,6 @@ int wm8903_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *
return 0;
}
-EXPORT_SYMBOL_GPL(wm8903_mic_detect);
static int wm8903_set_jack(struct snd_soc_component *component,
struct snd_soc_jack *jack, void *data)
diff --git a/sound/soc/codecs/wm8903.h b/sound/soc/codecs/wm8903.h
index 4b036f4b755e..2526d0c69029 100644
--- a/sound/soc/codecs/wm8903.h
+++ b/sound/soc/codecs/wm8903.h
@@ -11,11 +11,6 @@
#include <linux/i2c.h>
-extern int wm8903_mic_detect(struct snd_soc_component *component,
- struct snd_soc_jack *jack,
- int det, int shrt);
-
-
/*
* Register values.
*/
--
2.56.0