Skip to content
Snippets Groups Projects
Commit ed83144e authored by Lucas Oshiro's avatar Lucas Oshiro Committed by Jonathan Cameron
Browse files

staging: iio: adis16240: add device to module device table


Add a of_device_id struct and MODULE_DEVICE_TABLE call, in order to add
device-tree support for this driver.

Signed-off-by: default avatarLucas Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: default avatarRodrigo Ribeiro <rodrigorsdc@gmail.com>
Co-developed-by: default avatarRodrigo Ribeiro <rodrigorsdc@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 82e15063
No related branches found
No related tags found
No related merge requests found
......@@ -435,6 +435,12 @@ static int adis16240_remove(struct spi_device *spi)
return 0;
}
static const struct of_device_id adis16240_of_match[] = {
{ .compatible = "adi,adis16240" },
{ },
};
MODULE_DEVICE_TABLE(of, adis16240_of_match);
static struct spi_driver adis16240_driver = {
.driver = {
.name = "adis16240",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment