Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1210207

[PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver .of_match_table

From Javier Martinez Canillas <javier@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver .of_match_table
Date 2015-08-20 09:10 +0200
Message-ID <pZs94-65q-9@gated-at.bofh.it> (permalink)
References <pZs93-65q-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 drivers/iio/adc/mcp320x.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/mcp320x.c b/drivers/iio/adc/mcp320x.c
index b19e4f9d16e0..41a21e986c1a 100644
--- a/drivers/iio/adc/mcp320x.c
+++ b/drivers/iio/adc/mcp320x.c
@@ -404,6 +404,7 @@ MODULE_DEVICE_TABLE(spi, mcp320x_id);
 static struct spi_driver mcp320x_driver = {
 	.driver = {
 		.name = "mcp320x",
+		.of_match_table = of_match_ptr(mcp320x_dt_ids),
 		.owner = THIS_MODULE,
 	},
 	.probe = mcp320x_probe,
-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver .of_match_table Javier Martinez Canillas <javier@osg.samsung.com> - 2015-08-20 09:10 +0200
  Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Michael Welling <mwelling@ieee.org> - 2015-08-20 22:10 +0200
    Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Javier Martinez Canillas <javier@osg.samsung.com> - 2015-08-21 00:10 +0200
      Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Michael Welling <mwelling@ieee.org> - 2015-08-21 00:30 +0200
        Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Javier Martinez Canillas <javier@osg.samsung.com> - 2015-08-21 00:50 +0200
          Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Michael Welling <mwelling@ieee.org> - 2015-08-21 02:00 +0200
            Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Jonathan Cameron <jic23@kernel.org> - 2015-08-22 20:10 +0200
          Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Jonathan Cameron <jic23@kernel.org> - 2015-08-22 19:50 +0200
            Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver .of_match_table Rob Herring <robherring2@gmail.com> - 2015-08-24 00:20 +0200
              Re: [PATCH 13/18] iio: adc: mcp320x: Set struct spi_driver  .of_match_table Javier Martinez Canillas <javier@osg.samsung.com> - 2015-08-24 09:20 +0200

csiph-web