Commit 304840c4 authored by Stefan Popa's avatar Stefan Popa Committed by Jonathan Cameron

iio: imu: adis16480: Add OF device ID table

The driver does not have a struct of_device_id table, but supported
devices are registered via Device Trees. This patch adds OF device ID
table.
Signed-off-by: default avatarStefan Popa <stefan.popa@analog.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent cede2f89
...@@ -991,9 +991,19 @@ static const struct spi_device_id adis16480_ids[] = { ...@@ -991,9 +991,19 @@ static const struct spi_device_id adis16480_ids[] = {
}; };
MODULE_DEVICE_TABLE(spi, adis16480_ids); MODULE_DEVICE_TABLE(spi, adis16480_ids);
static const struct of_device_id adis16480_of_match[] = {
{ .compatible = "adi,adis16375" },
{ .compatible = "adi,adis16480" },
{ .compatible = "adi,adis16485" },
{ .compatible = "adi,adis16488" },
{ },
};
MODULE_DEVICE_TABLE(of, adis16480_of_match);
static struct spi_driver adis16480_driver = { static struct spi_driver adis16480_driver = {
.driver = { .driver = {
.name = "adis16480", .name = "adis16480",
.of_match_table = adis16480_of_match,
}, },
.id_table = adis16480_ids, .id_table = adis16480_ids,
.probe = adis16480_probe, .probe = adis16480_probe,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment