All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] iio: ad5755: add support for dt bindings
@ 2016-02-02 12:36 ` Sean Nyekjaer
  0 siblings, 0 replies; 14+ messages in thread
From: Sean Nyekjaer @ 2016-02-02 12:36 UTC (permalink / raw)
  To: linux-iio; +Cc: Sean Nyekjaer, devicetree

Still missing a way to provide default modes and settings
for the driver from dt, but I see this as a start.

Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
---
 drivers/iio/dac/ad5755.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c
index bfb350a..e1b6e78 100644
--- a/drivers/iio/dac/ad5755.c
+++ b/drivers/iio/dac/ad5755.c
@@ -607,6 +607,16 @@ static const struct spi_device_id ad5755_id[] = {
 };
 MODULE_DEVICE_TABLE(spi, ad5755_id);
 
+static const struct of_device_id ad5755_of_match[] = {
+	{ .compatible = "adi,ad5755" },
+	{ .compatible = "adi,ad5755-1" },
+	{ .compatible = "adi,ad5757" },
+	{ .compatible = "adi,ad5735" },
+	{ .compatible = "adi,ad5737" },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, ad5755_of_match);
+
 static struct spi_driver ad5755_driver = {
 	.driver = {
 		.name = "ad5755",
-- 
2.7.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-02-03  9:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-02 12:36 [PATCH 1/2] iio: ad5755: add support for dt bindings Sean Nyekjaer
2016-02-02 12:36 ` Sean Nyekjaer
2016-02-02 12:36 ` [PATCH 2/2] iio: ad5755: Add DT binding documentation Sean Nyekjaer
2016-02-02 12:36   ` Sean Nyekjaer
2016-02-02 21:55   ` Rob Herring
2016-02-02 21:55     ` Rob Herring
2016-02-02 15:33 ` [PATCH 1/2] iio: ad5755: add support for dt bindings Lars-Peter Clausen
2016-02-02 15:33   ` Lars-Peter Clausen
2016-02-02 15:57   ` Sean Nyekjær
2016-02-02 15:57     ` Sean Nyekjær
2016-02-02 16:37     ` Lars-Peter Clausen
2016-02-02 16:37       ` Lars-Peter Clausen
2016-02-03  9:29       ` Sean Nyekjær
2016-02-03  9:29         ` Sean Nyekjær

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.