From: Sean Nyekjaer <sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> To: linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Sean Nyekjaer <sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org>, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: [PATCH v2 1/4] iio: ad5755: add support for dt bindings Date: Wed, 3 Feb 2016 15:31:01 +0100 [thread overview] Message-ID: <1454509864-32285-1-git-send-email-sean.nyekjaer@prevas.dk> (raw) 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-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> --- Changes since v1: - none 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
WARNING: multiple messages have this Message-ID (diff)
From: Sean Nyekjaer <sean.nyekjaer@prevas.dk> To: <linux-iio@vger.kernel.org> Cc: Sean Nyekjaer <sean.nyekjaer@prevas.dk>, <devicetree@vger.kernel.org> Subject: [PATCH v2 1/4] iio: ad5755: add support for dt bindings Date: Wed, 3 Feb 2016 15:31:01 +0100 [thread overview] Message-ID: <1454509864-32285-1-git-send-email-sean.nyekjaer@prevas.dk> (raw) 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> --- Changes since v1: - none 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
next reply other threads:[~2016-02-03 14:31 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-02-03 14:31 Sean Nyekjaer [this message] 2016-02-03 14:31 ` [PATCH v2 1/4] iio: ad5755: add support for dt bindings Sean Nyekjaer [not found] ` <1454509864-32285-1-git-send-email-sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> 2016-02-03 14:31 ` [PATCH v2 2/4] iio: ad5755: Add DT binding documentation Sean Nyekjaer 2016-02-03 14:31 ` Sean Nyekjaer [not found] ` <1454509864-32285-2-git-send-email-sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> 2016-02-03 14:31 ` [PATCH v2 3/4] iio: ad5755: added full support for devicetree Sean Nyekjaer 2016-02-03 14:31 ` Sean Nyekjaer [not found] ` <1454509864-32285-3-git-send-email-sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> 2016-02-03 14:31 ` [PATCH v2 4/4] iio: ad5755: Add full DT binding documentation Sean Nyekjaer 2016-02-03 14:31 ` Sean Nyekjaer [not found] ` <1454509864-32285-4-git-send-email-sean.nyekjaer-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> 2016-02-06 18:30 ` Jonathan Cameron 2016-02-06 18:30 ` Jonathan Cameron [not found] ` <56B63BAC.2040001-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> 2016-02-08 17:37 ` Rob Herring 2016-02-08 17:37 ` Rob Herring 2016-02-09 8:22 ` [PATCH v2 3/4] iio: ad5755: added full support for devicetree Sean Nyekjær 2016-02-09 8:22 ` Sean Nyekjær [not found] ` <56B9A1B2.6030007-rjjw5hvvQKZaa/9Udqfwiw@public.gmane.org> 2016-02-09 20:30 ` Lars-Peter Clausen 2016-02-09 20:30 ` Lars-Peter Clausen [not found] ` <56BA4C74.9030503-Qo5EllUWu/uELgA04lAiVw@public.gmane.org> 2016-02-16 13:46 ` Sean Nyekjær 2016-02-16 13:46 ` Sean Nyekjær 2016-02-06 18:36 ` [PATCH v2 2/4] iio: ad5755: Add DT binding documentation Jonathan Cameron 2016-02-06 18:36 ` Jonathan Cameron
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1454509864-32285-1-git-send-email-sean.nyekjaer@prevas.dk \ --to=sean.nyekjaer-rjjw5hvvqkzaa/9udqfwiw@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.