projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cede2f8
)
iio: imu: adis16480: Add OF device ID table
author
Stefan Popa
<stefan.popa@analog.com>
Wed, 27 Feb 2019 16:14:23 +0000
(18:14 +0200)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:42 +0000
(20:19 +0100)
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: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16480.c
patch
|
blob
|
history
diff --git
a/drivers/iio/imu/adis16480.c
b/drivers/iio/imu/adis16480.c
index 98a23ac5026668984d2fceb992022572866a12e5..150d814aee299540f641425ac12f739f0fbbb07d 100644
(file)
--- a/
drivers/iio/imu/adis16480.c
+++ b/
drivers/iio/imu/adis16480.c
@@
-991,9
+991,19
@@
static const struct spi_device_id 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 = {
.driver = {
.name = "adis16480",
+ .of_match_table = adis16480_of_match,
},
.id_table = adis16480_ids,
.probe = adis16480_probe,