summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5575-spi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/rt5575-spi.h')
-rw-r--r--sound/soc/codecs/rt5575-spi.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5575-spi.h b/sound/soc/codecs/rt5575-spi.h
new file mode 100644
index 000000000..084638820
--- /dev/null
+++ b/sound/soc/codecs/rt5575-spi.h
@@ -0,0 +1,27 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * rt5575-spi.h -- ALC5575 SPI driver
+ *
+ * Copyright(c) 2025 Realtek Semiconductor Corp.
+ *
+ */
+
+#ifndef __RT5575_SPI_H__
+#define __RT5575_SPI_H__
+
+#if IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI)
+struct spi_device *rt5575_spi_get_device(struct device *dev);
+int rt5575_spi_fw_load(struct spi_device *spi);
+#else
+static inline struct spi_device *rt5575_spi_get_device(struct device *dev)
+{
+ return NULL;
+}
+
+static inline int rt5575_spi_fw_load(struct spi_device *spi)
+{
+ return -EINVAL;
+}
+#endif
+
+#endif /* __RT5575_SPI_H__ */