]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: rt5677-spi: Add SPI device ID matching table
authorYauhen Kharuzhy <jekhor@gmail.com>
Wed, 11 Feb 2026 00:18:39 +0000 (02:18 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 22 Feb 2026 23:52:13 +0000 (23:52 +0000)
To allow defining a device in board-specific drivers, add 'rt5677'
as a supported SPI device ID.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Link: https://patch.msgid.link/20260211002255.4090440-8-jekhor@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677-spi.c

index 885edcf0a3a508ed929234f50b982fe89d6fb6ce..548180ec5762c8e3e273985473864fefd5f3af29 100644 (file)
@@ -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);