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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: soc.h: replace custom COUNT_ARGS() & CONCATENATE() implementations

Replace custom implementation of the macros from args.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20230904111524.1740930-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
428cc410 0bb80ecc

+2 -5
+2 -5
include/sound/soc.h
··· 10 10 #ifndef __LINUX_SND_SOC_H 11 11 #define __LINUX_SND_SOC_H 12 12 13 + #include <linux/args.h> 13 14 #include <linux/of.h> 14 15 #include <linux/platform_device.h> 15 16 #include <linux/types.h> ··· 871 870 .platforms = platform, \ 872 871 .num_platforms = ARRAY_SIZE(platform) 873 872 874 - #define SND_SOC_DAILINK_REGx(_1, _2, _3, func, ...) func 875 873 #define SND_SOC_DAILINK_REG(...) \ 876 - SND_SOC_DAILINK_REGx(__VA_ARGS__, \ 877 - SND_SOC_DAILINK_REG3, \ 878 - SND_SOC_DAILINK_REG2, \ 879 - SND_SOC_DAILINK_REG1)(__VA_ARGS__) 874 + CONCATENATE(SND_SOC_DAILINK_REG, COUNT_ARGS(__VA_ARGS__))(__VA_ARGS__) 880 875 881 876 #define SND_SOC_DAILINK_DEF(name, def...) \ 882 877 static struct snd_soc_dai_link_component name[] = { def }