Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: sprd: Allow the MCDT driver to build into modules

Change the config to 'tristate' for MCDT driver to allow it to build into
modules, as well as changing to use IS_ENABLED() to validate if need supply
dummy functions when building the MCDT driver as a module.

Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/9306f2b99641136653ae4fe6cf9e859b7f698f77.1583387748.git.baolin.wang7@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Baolin Wang and committed by
Mark Brown
fd357ec5 2e4249f5

+2 -2
+1 -1
sound/soc/sprd/Kconfig
··· 8 8 the Spreadtrum SoCs' Audio interfaces. 9 9 10 10 config SND_SOC_SPRD_MCDT 11 - bool "Spreadtrum multi-channel data transfer support" 11 + tristate "Spreadtrum multi-channel data transfer support" 12 12 depends on SND_SOC_SPRD 13 13 help 14 14 Say y here to enable multi-channel data transfer support. It
+1 -1
sound/soc/sprd/sprd-mcdt.h
··· 48 48 struct list_head list; 49 49 }; 50 50 51 - #ifdef CONFIG_SND_SOC_SPRD_MCDT 51 + #if IS_ENABLED(CONFIG_SND_SOC_SPRD_MCDT) 52 52 struct sprd_mcdt_chan *sprd_mcdt_request_chan(u8 channel, 53 53 enum sprd_mcdt_channel_type type); 54 54 void sprd_mcdt_free_chan(struct sprd_mcdt_chan *chan);