summaryrefslogtreecommitdiff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-08-20 10:07:24 +0300
committerJonathan Cameron <jic23@kernel.org>2015-08-22 21:00:02 +0300
commitd1b895fedae30e2e948dbae4d209509c44564074 (patch)
tree341f8ce5ba6c21718cff3f0215fedce776b3ff4c /drivers/iio/adc
parent45ef12b6ad6ade7bb8c89db3d3101e99d9552f3a (diff)
downloadlinux-d1b895fedae30e2e948dbae4d209509c44564074.tar.xz
iio: adc: max1027: Set struct spi_driver .of_match_table
The driver has an OF id table but the .of_match_table is not set so the SPI core can't do an OF style match and the table was unused. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/max1027.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c
index 44bf815adb6c..54a8302aaace 100644
--- a/drivers/iio/adc/max1027.c
+++ b/drivers/iio/adc/max1027.c
@@ -508,6 +508,7 @@ static int max1027_remove(struct spi_device *spi)
static struct spi_driver max1027_driver = {
.driver = {
.name = "max1027",
+ .of_match_table = of_match_ptr(max1027_adc_dt_ids),
.owner = THIS_MODULE,
},
.probe = max1027_probe,