summaryrefslogtreecommitdiff
path: root/include/sound/sdca.h
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2025-11-20 15:30:12 +0000
committerMark Brown <broonie@kernel.org>2025-11-20 17:22:51 +0000
commit5fe65824b74c0414f105f0535437108cd6c31cc7 (patch)
tree60cfd837a24cc1b31e627a2c72efc994d9f7a2d8 /include/sound/sdca.h
parent3508311f2e1c872b645f13c6fd52840418089d41 (diff)
ASoC: SDCA: Add missing forward declaration in header
The structure sdca_function_desc contains a fwnode_handle which is undefined if the user doesn't pull in an appropriate header. Add a forward declaration to avoid this. Fixes: 996bf834d0b6 ("ASoC: SDCA: Add code to parse Function information") Tested-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Tested-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20251120153023.2105663-4-ckeepax@opensource.cirrus.com Reviewed-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/sdca.h')
-rw-r--r--include/sound/sdca.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/sdca.h b/include/sound/sdca.h
index d38cdbfeb35f..d58d60221277 100644
--- a/include/sound/sdca.h
+++ b/include/sound/sdca.h
@@ -13,6 +13,7 @@
#include <linux/kconfig.h>
struct acpi_table_swft;
+struct fwnode_handle;
struct sdw_slave;
#define SDCA_MAX_FUNCTION_COUNT 8