projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ef12b
)
iio: adc: max1027: Set struct spi_driver .of_match_table
author
Javier Martinez Canillas
<javier@osg.samsung.com>
Thu, 20 Aug 2015 07:07:24 +0000
(09:07 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Sat, 22 Aug 2015 18:00:02 +0000
(19:00 +0100)
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>
drivers/iio/adc/max1027.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/max1027.c
b/drivers/iio/adc/max1027.c
index 44bf815adb6c0d4edd9162fca82b4aaa1dd95d81..54a8302aaacec518c46fb8d603b4da62e28d505d 100644
(file)
--- 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,