Commit d1db9ad5 authored by Thiago Estrela's avatar Thiago Estrela Committed by Jonathan Cameron

staging: iio: adis16203: Add of_device_id table

Accomplish device tree compatibility to driver ADIS16203
by adding of_device_id table and making a subsequent call to
MODULE_DEVICE_TABLE.
Signed-off-by: default avatarThiago Estrela <thiagestrela@gmail.com>
Signed-off-by: default avatarTiago Napoli <napoli.tiago96@gmail.com>
Co-developed-by: default avatarTiago Napoli <napoli.tiago96@gmail.com>
Signed-off-by: default avatarPedro Sousa <pedroteosousa@gmail.com>
Co-developed-by: default avatarPedro Sousa <pedroteosousa@gmail.com>
Reviewed-by: default avatarMatheus Tavares <matheus.bernardino@usp.br>
Reviewed-by: default avatarMarcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 26623396
......@@ -311,9 +311,17 @@ static int adis16203_remove(struct spi_device *spi)
return 0;
}
static const struct of_device_id adis16203_of_match[] = {
{ .compatible = "adi,adis16203" },
{ },
};
MODULE_DEVICE_TABLE(of, adis16203_of_match);
static struct spi_driver adis16203_driver = {
.driver = {
.name = "adis16203",
.of_match_table = adis16203_of_match,
},
.probe = adis16203_probe,
.remove = adis16203_remove,
......
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