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: Lucas Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Rodrigo Ribeiro <rodrigorsdc@gmail.com>
Co-developed-by: Rodrigo Ribeiro <rodrigorsdc@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Lucas Oshiro 2019-05-18 18:44:34 -03:00 коммит произвёл Jonathan Cameron
Родитель 82e1506339
Коммит ed83144e6d
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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",