From: nsekhar@ti.com (Sekhar Nori)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/4] gpio: davinci: DT changes for driver
Date: Thu, 20 Jun 2013 10:21:47 +0530 [thread overview]
Message-ID: <51C28A63.6080905@ti.com> (raw)
In-Reply-To: <CACRpkdbJJVKC539CAPNxxEbofVfw3Pr0gyCSZyY9YbkXneE-qQ@mail.gmail.com>
On 6/20/2013 12:40 AM, Linus Walleij wrote:
> On Fri, Jun 14, 2013 at 12:20 PM, Philip Avinash
> <avinashphilipk@gmail.com> wrote:
>
>> From: KV Sujith <sujithkv@ti.com>
>>
>> - Add of_device_id for Davinci GPIO driver.
>> - Add function to populate data from DT.
>> - Modify the probe to read from DT if DT match is found.
>> - Add DT binding documentation for Davinci GPIO properties in a new file
>> gpio-davinci.txt located at Documentation/devicetree/bindings/gpio/.
>>
>> Signed-off-by: KV Sujith <sujithkv@ti.com>
>> Signed-off-by: Philip Avinash <avinashphilip@ti.com>
>> ---
>> Changes since v1:
>> - description for interrupts changed to reflecti
>> interrupt array usage.
> (...)
>
>> +static struct davinci_gpio_platform_data *davinci_gpio_set_pdata_of(
>> + struct platform_device *pdev)
>> +{
>> + struct device_node *dn = pdev->dev.of_node;
>> + struct davinci_gpio_platform_data *pdata;
>> + u32 val, ret;
>> +
>> + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
>> + if (pdata) {
>
> Instead of this arrow pattern:
>
> if (!pdata) {
> dev_err( ... "out of memory allocating platform data");
> return NULL;
> }
>
> And de-indent the rest.
>
> With that change:
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> I guess this may go through the DaVinci tree with the rest of the DaVinci
> patches?
Linus, yes, I will pick these up with your acks.
Thanks,
Sekhar
WARNING: multiple messages have this Message-ID (diff)
From: Sekhar Nori <nsekhar-l0cyMroinI0@public.gmane.org>
To: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: "davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org"
<davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org>,
Russell King - ARM Linux
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
"linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org"
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>,
"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Grant Likely
<grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>,
Philip Avinash <avinashphilip-l0cyMroinI0@public.gmane.org>,
Rob Landley <rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>,
"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH v2 2/4] gpio: davinci: DT changes for driver
Date: Thu, 20 Jun 2013 10:21:47 +0530 [thread overview]
Message-ID: <51C28A63.6080905@ti.com> (raw)
In-Reply-To: <CACRpkdbJJVKC539CAPNxxEbofVfw3Pr0gyCSZyY9YbkXneE-qQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 6/20/2013 12:40 AM, Linus Walleij wrote:
> On Fri, Jun 14, 2013 at 12:20 PM, Philip Avinash
> <avinashphilipk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> From: KV Sujith <sujithkv-l0cyMroinI0@public.gmane.org>
>>
>> - Add of_device_id for Davinci GPIO driver.
>> - Add function to populate data from DT.
>> - Modify the probe to read from DT if DT match is found.
>> - Add DT binding documentation for Davinci GPIO properties in a new file
>> gpio-davinci.txt located at Documentation/devicetree/bindings/gpio/.
>>
>> Signed-off-by: KV Sujith <sujithkv-l0cyMroinI0@public.gmane.org>
>> Signed-off-by: Philip Avinash <avinashphilip-l0cyMroinI0@public.gmane.org>
>> ---
>> Changes since v1:
>> - description for interrupts changed to reflecti
>> interrupt array usage.
> (...)
>
>> +static struct davinci_gpio_platform_data *davinci_gpio_set_pdata_of(
>> + struct platform_device *pdev)
>> +{
>> + struct device_node *dn = pdev->dev.of_node;
>> + struct davinci_gpio_platform_data *pdata;
>> + u32 val, ret;
>> +
>> + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
>> + if (pdata) {
>
> Instead of this arrow pattern:
>
> if (!pdata) {
> dev_err( ... "out of memory allocating platform data");
> return NULL;
> }
>
> And de-indent the rest.
>
> With that change:
> Acked-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> I guess this may go through the DaVinci tree with the rest of the DaVinci
> patches?
Linus, yes, I will pick these up with your acks.
Thanks,
Sekhar
WARNING: multiple messages have this Message-ID (diff)
From: Sekhar Nori <nsekhar@ti.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Philip Avinash <avinashphilipk@gmail.com>,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
Grant Likely <grant.likely@secretlab.ca>,
Rob Herring <rob.herring@calxeda.com>,
Rob Landley <rob@landley.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree-discuss@lists.ozlabs.org"
<devicetree-discuss@lists.ozlabs.org>,
"linux-doc@vger.kernel.org" <linux-doc@vger.kernel.org>,
Philip Avinash <avinashphilip@ti.com>
Subject: Re: [PATCH v2 2/4] gpio: davinci: DT changes for driver
Date: Thu, 20 Jun 2013 10:21:47 +0530 [thread overview]
Message-ID: <51C28A63.6080905@ti.com> (raw)
In-Reply-To: <CACRpkdbJJVKC539CAPNxxEbofVfw3Pr0gyCSZyY9YbkXneE-qQ@mail.gmail.com>
On 6/20/2013 12:40 AM, Linus Walleij wrote:
> On Fri, Jun 14, 2013 at 12:20 PM, Philip Avinash
> <avinashphilipk@gmail.com> wrote:
>
>> From: KV Sujith <sujithkv@ti.com>
>>
>> - Add of_device_id for Davinci GPIO driver.
>> - Add function to populate data from DT.
>> - Modify the probe to read from DT if DT match is found.
>> - Add DT binding documentation for Davinci GPIO properties in a new file
>> gpio-davinci.txt located at Documentation/devicetree/bindings/gpio/.
>>
>> Signed-off-by: KV Sujith <sujithkv@ti.com>
>> Signed-off-by: Philip Avinash <avinashphilip@ti.com>
>> ---
>> Changes since v1:
>> - description for interrupts changed to reflecti
>> interrupt array usage.
> (...)
>
>> +static struct davinci_gpio_platform_data *davinci_gpio_set_pdata_of(
>> + struct platform_device *pdev)
>> +{
>> + struct device_node *dn = pdev->dev.of_node;
>> + struct davinci_gpio_platform_data *pdata;
>> + u32 val, ret;
>> +
>> + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
>> + if (pdata) {
>
> Instead of this arrow pattern:
>
> if (!pdata) {
> dev_err( ... "out of memory allocating platform data");
> return NULL;
> }
>
> And de-indent the rest.
>
> With that change:
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> I guess this may go through the DaVinci tree with the rest of the DaVinci
> patches?
Linus, yes, I will pick these up with your acks.
Thanks,
Sekhar
next prev parent reply other threads:[~2013-06-20 4:51 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 9:43 [PATCH v2 0/4] GPIO DT support for da850 Philip Avinash
2013-06-14 9:43 ` Philip Avinash
2013-06-14 9:43 ` Philip Avinash
2013-06-14 9:45 ` [PATCH v2 1/4] ARM: davinci: da850: Use #include for all device trees Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-20 11:06 ` Sekhar Nori
2013-06-20 11:06 ` Sekhar Nori
2013-06-20 11:06 ` Sekhar Nori
2013-06-14 9:45 ` [PATCH v2 3/4] ARM: davinci: da850: add GPIO DT entries Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-14 9:45 ` [PATCH v2 4/4] ARM: davinci: da850 evm: add GPIO DT data Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-14 9:45 ` Philip Avinash
2013-06-14 10:20 ` [PATCH v2 2/4] gpio: davinci: DT changes for driver Philip Avinash
2013-06-14 10:20 ` Philip Avinash
2013-06-14 10:20 ` Philip Avinash
2013-06-19 19:10 ` Linus Walleij
2013-06-19 19:10 ` Linus Walleij
2013-06-20 4:51 ` Sekhar Nori [this message]
2013-06-20 4:51 ` Sekhar Nori
2013-06-20 4:51 ` Sekhar Nori
2013-06-20 10:36 ` Sekhar Nori
2013-06-20 10:36 ` Sekhar Nori
2013-06-20 10:36 ` Sekhar Nori
2013-06-14 10:20 ` [PATCH v2 0/4] GPIO DT support for da850 Philip, Avinash
2013-06-14 10:20 ` Philip, Avinash
2013-06-14 10:20 ` Philip, Avinash
2013-08-11 9:34 ` Prabhakar Lad
2013-08-11 9:34 ` Prabhakar Lad
2013-08-11 9:34 ` Prabhakar Lad
2013-08-14 4:42 ` Sekhar Nori
2013-08-14 4:42 ` Sekhar Nori
2013-08-14 4:42 ` Sekhar Nori
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=51C28A63.6080905@ti.com \
--to=nsekhar@ti.com \
--cc=linux-arm-kernel@lists.infradead.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 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.