]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: tas2783A: remove unused tas25xx_(de)register_misc() functions
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Wed, 10 Jun 2026 01:35:34 +0000 (18:35 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jun 2026 10:59:17 +0000 (11:59 +0100)
The tas2783 driver defines two functions tas25xx_register_misc and
tas25xx_deregister_misc which have stub implementations. It uses
external implementations if CONFIG_SND_SOC_TAS2783_UTIL is enabled, but
that symbol has never been present in the kernel. Therefore, these
functions are entirely unused. Remove them.

Discovered while searching for CONFIG_* symbols referenced in code but
not defined in any Kconfig file.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Link: https://patch.msgid.link/20260610013534.30762-1-enelsonmoore@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2783-sdw.c
sound/soc/codecs/tas2783.h

index 69d03ddc7a0baf1d5d7d36bc365b2197e2bc5f9b..7d70e7e3f24f4ecf25450f828fafd4e10f6afb0c 100644 (file)
@@ -1011,7 +1011,6 @@ static s32 tas_component_probe(struct snd_soc_component *component)
                snd_soc_component_get_drvdata(component);
 
        tas_dev->component = component;
-       tas25xx_register_misc(tas_dev->sdw_peripheral);
 
        return 0;
 }
@@ -1020,7 +1019,6 @@ static void tas_component_remove(struct snd_soc_component *codec)
 {
        struct tas2783_prv *tas_dev =
                        snd_soc_component_get_drvdata(codec);
-       tas25xx_deregister_misc();
        tas_dev->component = NULL;
 }
 
index bf34319c9a9fb71bdf33f131ac909a549a5e271f..d5996c73526c5e97b908e1294548fb61f239447f 100644 (file)
 #define TAS2783_CALIB_DATA_SZ  ((TAS2783_CALIB_HDR_SZ) + TAS2783_CALIB_CRC_SZ + \
                                ((TAS2783_CALIB_PARAMS) * 4 * (TAS2783_CALIB_MAX_SPK_COUNT)))
 
-#if IS_ENABLED(CONFIG_SND_SOC_TAS2783_UTIL)
-int32_t tas25xx_register_misc(struct sdw_slave *peripheral);
-int32_t tas25xx_deregister_misc(void);
-#else
-static void tas25xx_register_misc(struct sdw_slave *peripheral) {}
-static void tas25xx_deregister_misc(void) {}
-#endif
-
 #endif /*__TAS2783_H__ */