mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
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:
parent
904e71d425
commit
bf12219147
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user