Commit 91d05d76 authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Jonathan Cameron

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: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 0833627f
...@@ -421,6 +421,7 @@ MODULE_DEVICE_TABLE(i2c, dac5571_id); ...@@ -421,6 +421,7 @@ MODULE_DEVICE_TABLE(i2c, dac5571_id);
static struct i2c_driver dac5571_driver = { static struct i2c_driver dac5571_driver = {
.driver = { .driver = {
.name = "ti-dac5571", .name = "ti-dac5571",
.of_match_table = of_match_ptr(dac5571_of_id),
}, },
.probe = dac5571_probe, .probe = dac5571_probe,
.remove = dac5571_remove, .remove = dac5571_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