[PATCH 7/7] ASoC: rt5677-spi: Add SPI device ID matching table

From: Yauhen Kharuzhy

Date: Tue Feb 10 2026 - 19:23:47 EST


To allow defining a device in board-specific drivers, add 'rt5677'
as a supported SPI device ID.

Signed-off-by: Yauhen Kharuzhy <jekhor@xxxxxxxxx>
---
sound/soc/codecs/rt5677-spi.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/sound/soc/codecs/rt5677-spi.c b/sound/soc/codecs/rt5677-spi.c
index 885edcf0a3a5..548180ec5762 100644
--- a/sound/soc/codecs/rt5677-spi.c
+++ b/sound/soc/codecs/rt5677-spi.c
@@ -624,12 +624,19 @@ static const struct acpi_device_id rt5677_spi_acpi_id[] = {
MODULE_DEVICE_TABLE(acpi, rt5677_spi_acpi_id);
#endif

+static const struct spi_device_id rt5677_spi_ids[] = {
+ { "rt5677", 0 },
+ { },
+};
+MODULE_DEVICE_TABLE(spi, rt5677_spi_ids);
+
static struct spi_driver rt5677_spi_driver = {
.driver = {
.name = DRV_NAME,
.acpi_match_table = ACPI_PTR(rt5677_spi_acpi_id),
},
.probe = rt5677_spi_probe,
+ .id_table = rt5677_spi_ids,
};
module_spi_driver(rt5677_spi_driver);

--
2.51.0