iio: dac: ti-dac5571: provide of_match_table to driver
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Fri, 24 Aug 2018 20:24:59 +0000 (22:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Aug 2018 08:58:52 +0000 (09:58 +0100)
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>
drivers/iio/dac/ti-dac5571.c

index e39d1e901353bc06ef0d06fb6c38f1844990d20d..f6dcd8bce2b018a8e97d41099daac48faf0e783a 100644 (file)
@@ -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,