]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/iio/dac/ad7303.c
Merge remote-tracking branch 'staging/staging-next'
[karo-tx-linux.git] / drivers / iio / dac / ad7303.c
index 399de2cfeb16b52c75180c88f8435e4102a53be5..e690dd11e99f64fa1270da8132010f34d94d7241 100644 (file)
@@ -281,6 +281,12 @@ static int ad7303_remove(struct spi_device *spi)
        return 0;
 }
 
+static const struct of_device_id ad7303_spi_of_match[] = {
+       { .compatible = "adi,ad7303", },
+       { /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(of, ad7303_spi_of_match);
+
 static const struct spi_device_id ad7303_spi_ids[] = {
        { "ad7303", 0 },
        {}
@@ -290,6 +296,7 @@ MODULE_DEVICE_TABLE(spi, ad7303_spi_ids);
 static struct spi_driver ad7303_driver = {
        .driver = {
                .name = "ad7303",
+               .of_match_table = of_match_ptr(ad7303_spi_of_match),
        },
        .probe = ad7303_probe,
        .remove = ad7303_remove,