From: Jonathan Cameron <jic23@kernel.org>
To: Denis Carikli <denis@eukrea.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Rob Herring <robh+dt@kernel.org>
Cc: "Eric Bénard" <eric@eukrea.com>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 4/4] iio: adc: ti-adc128s052: Add devicetree support
Date: Sun, 2 Aug 2015 18:01:03 +0100 [thread overview]
Message-ID: <55BE4CCF.1080102@kernel.org> (raw)
In-Reply-To: <1437581064-9733-4-git-send-email-denis@eukrea.com>
On 22/07/15 17:04, Denis Carikli wrote:
> Signed-off-by: Denis Carikli <denis@eukrea.com>
> ---
> drivers/iio/adc/ti-adc128s052.c | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c
> index 8aca0ff..2558508 100644
> --- a/drivers/iio/adc/ti-adc128s052.c
> +++ b/drivers/iio/adc/ti-adc128s052.c
> @@ -13,10 +13,11 @@
> */
>
> #include <linux/err.h>
> -#include <linux/spi/spi.h>
> #include <linux/module.h>
> #include <linux/iio/iio.h>
> +#include <linux/of.h>
> #include <linux/regulator/consumer.h>
> +#include <linux/spi/spi.h>
Why the reorder?
>
> struct adc128_configuration {
> const struct iio_chan_spec *channels;
> @@ -183,10 +184,21 @@ static const struct spi_device_id adc128_id[] = {
> };
> MODULE_DEVICE_TABLE(spi, adc128_id);
>
> +#ifdef CONFIG_OF
> +static const struct of_device_id adc128_of_match[] = {
> + { .compatible = "ti,adc128s052" },
> + { .compatible = "ti,adc122s021" },
> + { .compatible = "ti,adc108s022" },
> + {}
> +};
> +MODULE_DEVICE_TABLE(of, adc128_of_match);
> +#endif
> +
> static struct spi_driver adc128_driver = {
> .driver = {
> .name = "adc128s052",
> .owner = THIS_MODULE,
> + .of_match_table = of_match_ptr(adc128_of_match),
> },
> .probe = adc128_probe,
> .remove = adc128_remove,
>
next prev parent reply other threads:[~2015-08-02 17:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 16:04 [PATCH 1/4] iio: adc: mcp320x: Fix NULL pointer Denis Carikli
2015-07-22 16:04 ` [PATCH 2/4] iio: adc: ti-adc128s052: Add adc108s022 ID Denis Carikli
2015-07-22 17:24 ` Michael Welling
2015-08-02 17:01 ` Jonathan Cameron
2015-07-22 16:04 ` [PATCH 3/4] iio: ti-adc128s052: Documentation: " Denis Carikli
2015-08-02 17:01 ` Jonathan Cameron
2015-07-22 16:04 ` [PATCH 4/4] iio: adc: ti-adc128s052: Add devicetree support Denis Carikli
2015-08-02 17:01 ` Jonathan Cameron [this message]
2015-07-22 17:18 ` [PATCH 1/4] iio: adc: mcp320x: Fix NULL pointer Michael Welling
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=55BE4CCF.1080102@kernel.org \
--to=jic23@kernel.org \
--cc=denis@eukrea.com \
--cc=devicetree@vger.kernel.org \
--cc=eric@eukrea.com \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=robh+dt@kernel.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).