mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 13:57:54 -04:00
staging: iio: ad2s1210: Add device tree table.
Add device tree table for matching vendor ID. Note that as the driver is still heavily in flux and there are some non obvious aspects to a comprehensive binding, that binding will be submitted at a later date (before leaving staging!) Signed-off-by: Nishad Kamdar <nishadkamdar@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
66dd9e3d5e
commit
382c7fce70
@@ -699,6 +699,12 @@ static int ad2s1210_remove(struct spi_device *spi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id ad2s1210_of_match[] = {
|
||||
{ .compatible = "adi,ad2s1210", },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, ad2s1210_of_match);
|
||||
|
||||
static const struct spi_device_id ad2s1210_id[] = {
|
||||
{ "ad2s1210" },
|
||||
{}
|
||||
@@ -708,6 +714,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id);
|
||||
static struct spi_driver ad2s1210_driver = {
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = of_match_ptr(ad2s1210_of_match),
|
||||
},
|
||||
.probe = ad2s1210_probe,
|
||||
.remove = ad2s1210_remove,
|
||||
|
||||
Reference in New Issue
Block a user