summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/resolver/ad2s1210.c
diff options
context:
space:
mode:
authorNishad Kamdar <nishadkamdar@gmail.com>2018-10-31 19:00:36 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-11-11 18:29:46 +0300
commit382c7fce7005b55f0583cf5905758d2b8def803a (patch)
treeec3482ff8b4c91e390e91b0d4f3d4f133869b9eb /drivers/staging/iio/resolver/ad2s1210.c
parent66dd9e3d5e038f46f2cbecc76a1e970b614dc824 (diff)
downloadlinux-382c7fce7005b55f0583cf5905758d2b8def803a.tar.xz
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>
Diffstat (limited to 'drivers/staging/iio/resolver/ad2s1210.c')
-rw-r--r--drivers/staging/iio/resolver/ad2s1210.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c
index 235944189ab0..cec9d995b3df 100644
--- a/drivers/staging/iio/resolver/ad2s1210.c
+++ b/drivers/staging/iio/resolver/ad2s1210.c
@@ -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,