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: Don't use "proxy" headers

Update header inclusions to follow IWYU (Include What You Use)
principle.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240422151513.2052167-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
3249c68e 710f9a36

+21 -11
+21 -11
include/sound/soc.h
··· 11 11 #define __LINUX_SND_SOC_H 12 12 13 13 #include <linux/args.h> 14 - #include <linux/of.h> 15 - #include <linux/platform_device.h> 16 - #include <linux/types.h> 17 - #include <linux/notifier.h> 18 - #include <linux/workqueue.h> 14 + #include <linux/array_size.h> 15 + #include <linux/device.h> 16 + #include <linux/errno.h> 19 17 #include <linux/interrupt.h> 20 - #include <linux/kernel.h> 21 - #include <linux/regmap.h> 18 + #include <linux/lockdep.h> 22 19 #include <linux/log2.h> 23 - #include <sound/core.h> 24 - #include <sound/pcm.h> 20 + #include <linux/mutex.h> 21 + #include <linux/notifier.h> 22 + #include <linux/of.h> 23 + #include <linux/types.h> 24 + #include <linux/workqueue.h> 25 + 26 + #include <sound/ac97_codec.h> 25 27 #include <sound/compress_driver.h> 26 28 #include <sound/control.h> 27 - #include <sound/ac97_codec.h> 29 + #include <sound/core.h> 30 + #include <sound/pcm.h> 31 + 32 + struct module; 33 + struct platform_device; 34 + 35 + /* For the current users of sound/soc.h to avoid build issues */ 36 + #include <linux/platform_device.h> 37 + #include <linux/regmap.h> 28 38 29 39 /* 30 40 * Convenience kcontrol builders ··· 422 412 #define SOC_ENUM_SINGLE_VIRT_DECL(name, xtexts) \ 423 413 const struct soc_enum name = SOC_ENUM_SINGLE_VIRT(ARRAY_SIZE(xtexts), xtexts) 424 414 425 - struct device_node; 426 415 struct snd_jack; 427 416 struct snd_soc_card; 428 417 struct snd_soc_pcm_stream; ··· 436 427 struct snd_soc_jack; 437 428 struct snd_soc_jack_zone; 438 429 struct snd_soc_jack_pin; 430 + 439 431 #include <sound/soc-dapm.h> 440 432 #include <sound/soc-dpcm.h> 441 433 #include <sound/soc-topology.h>