summaryrefslogtreecommitdiffstats
path: root/drivers/iio/dac/ti-dac5571.c
diff options
context:
space:
mode:
authorMarcus Folkesson <marcus.folkesson@gmail.com>2018-08-24 22:24:59 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-08-25 10:58:52 +0200
commit91d05d7639f388bbed90076299867e85e983f298 (patch)
tree83955e2fcc2e118ae9255feca4506922640871e3 /drivers/iio/dac/ti-dac5571.c
parentiio: dac: mcp4922: fix error handling in mcp4922_write_raw (diff)
downloadlinux-91d05d7639f388bbed90076299867e85e983f298.tar.xz
linux-91d05d7639f388bbed90076299867e85e983f298.zip
iio: dac: ti-dac5571: provide of_match_table to driver
Use the created list of of_device_id's as a match table. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ti-dac5571.c')
-rw-r--r--drivers/iio/dac/ti-dac5571.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/ti-dac5571.c b/drivers/iio/dac/ti-dac5571.c
index e39d1e901353..f6dcd8bce2b0 100644
--- a/drivers/iio/dac/ti-dac5571.c
+++ b/drivers/iio/dac/ti-dac5571.c
@@ -421,6 +421,7 @@ MODULE_DEVICE_TABLE(i2c, dac5571_id);
static struct i2c_driver dac5571_driver = {
.driver = {
.name = "ti-dac5571",
+ .of_match_table = of_match_ptr(dac5571_of_id),
},
.probe = dac5571_probe,
.remove = dac5571_remove,