ASoC: rt5677-spi: Add SPI device ID matching table

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>
This commit is contained in:
Yauhen Kharuzhy 2026-02-11 02:18:39 +02:00 committed by Mark Brown
parent 904e71d425
commit bf12219147
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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);