[PATCH 11/12] ASoC: codecs: wm8962: Make wm8962_mic_detect() static

From: Amadeusz Sławiński

Date: Mon Oct 26 2026 - 16:20:17 EST


Now that all callers have been switched to snd_soc_component_set_jack(),
make wm8962_mic_detect() static and unexport it.

Signed-off-by: Amadeusz Sławiński <amade@xxxxxxxxxx>
---
sound/soc/codecs/wm8962.c | 3 +--
sound/soc/codecs/wm8962.h | 2 --
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index b36e73fabbdd..31c9080cd814 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -3244,7 +3244,7 @@ static irqreturn_t wm8962_irq(int irq, void *data)
*
* If no jack is supplied detection will be disabled.
*/
-int wm8962_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack)
+static int wm8962_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack)
{
struct wm8962_priv *wm8962 = snd_soc_component_get_drvdata(component);
struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
@@ -3282,7 +3282,6 @@ int wm8962_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *

return 0;
}
-EXPORT_SYMBOL_GPL(wm8962_mic_detect);

static int beep_rates[] = {
500, 1000, 2000, 4000,
diff --git a/sound/soc/codecs/wm8962.h b/sound/soc/codecs/wm8962.h
index e7f4a70ab8a4..f7e886978a50 100644
--- a/sound/soc/codecs/wm8962.h
+++ b/sound/soc/codecs/wm8962.h
@@ -3776,6 +3776,4 @@
#define WM8962_VSS_ENA_SHIFT 0 /* VSS_ENA */
#define WM8962_VSS_ENA_WIDTH 1 /* VSS_ENA */

-int wm8962_mic_detect(struct snd_soc_component *component, struct snd_soc_jack *jack);
-
#endif
--
2.56.0