diff options
author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2024-01-25 10:31:11 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-01-26 14:46:54 +0000 |
commit | fb430b06397e5eebefd42584fe4dfabf2a3632e0 (patch) | |
tree | ce0015a7de0e9d6d9b6a577ee57f5aeb236924d7 /sound/soc/codecs/cs42l43.h | |
parent | ASoC: dt-bindings: samsung,tm2: Correct "audio-codec" constraints (diff) | |
download | wireguard-linux-fb430b06397e5eebefd42584fe4dfabf2a3632e0.tar.xz wireguard-linux-fb430b06397e5eebefd42584fe4dfabf2a3632e0.zip |
ASoC: cs42l43: Tidy up header includes
Use more forward declarations, move header guards to cover other
includes, and rely less on including headers through other headers.
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://msgid.link/r/20240125103117.2622095-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs42l43.h')
-rw-r--r-- | sound/soc/codecs/cs42l43.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/sound/soc/codecs/cs42l43.h b/sound/soc/codecs/cs42l43.h index 125e36861d5d..9924c13e1eb5 100644 --- a/sound/soc/codecs/cs42l43.h +++ b/sound/soc/codecs/cs42l43.h @@ -6,19 +6,14 @@ * Cirrus Logic International Semiconductor Ltd. */ -#include <linux/clk.h> +#ifndef CS42L43_ASOC_INT_H +#define CS42L43_ASOC_INT_H + #include <linux/completion.h> -#include <linux/device.h> #include <linux/mutex.h> -#include <linux/regmap.h> -#include <linux/soundwire/sdw.h> #include <linux/types.h> -#include <sound/cs42l43.h> +#include <linux/workqueue.h> #include <sound/pcm.h> -#include <sound/soc-jack.h> - -#ifndef CS42L43_ASOC_INT_H -#define CS42L43_ASOC_INT_H #define CS42L43_INTERNAL_SYSCLK 24576000 #define CS42L43_DEFAULT_SLOTS 0x3F @@ -37,6 +32,14 @@ #define CS42L43_N_BUTTONS 6 +struct clk; +struct device; + +struct snd_soc_component; +struct snd_soc_jack; + +struct cs42l43; + struct cs42l43_codec { struct device *dev; struct cs42l43 *core; |