All of lore.kernel.org
 help / color / mirror / Atom feed
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>,
	"Wang, Yalin" <Yalin.Wang@sonymobile.com>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>
Subject: Re: [RFC/RFT PATCH 2/2] gpiolib: irqchip: get rid of irq_base
Date: Fri, 26 Sep 2014 13:44:44 +0300	[thread overview]
Message-ID: <5425439C.7010506@ti.com> (raw)
In-Reply-To: <CACRpkdZSOhNTV5eKB10-=1F-pWOkUmUyo1p04bD+bUW2GK54OA@mail.gmail.com>

On 09/26/2014 11:44 AM, Linus Walleij wrote:
> On Thu, Sep 25, 2014 at 6:09 PM, Grygorii Strashko
> <grygorii.strashko@ti.com> wrote:
>
>> Remove irq_base from struct gpio_chip, as it is seems to
>> be unused.
>> Aslo, using this field by drivers is unsafe because it's
>> uncompatible with Sparse IRQ feature.
>>
>> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
>> ---
>> Hi Linus,
>>
>> I've not found users of this field in drivers/gpio/ folder,
>> so I've decided to created this patch to get more comments.
>
> Wut?
>
> git grep '>irq_base'
> (...)
> drivers/gpio/gpio-max732x.c:    return chip->irq_base + off;
^struct max732x_chip *chip;

> drivers/gpio/gpio-ml-ioh.c:     return chip->irq_base + offset;
^struct ioh_gpio *chip

> drivers/gpio/gpio-pch.c:        chip->irq_base = irq_base;
^struct pch_gpio *chip

> etc etc

etc ;)

I've spent some time checking it, but it's possible
that I missed smth or it's used outside gpio directory.

Best regards,
-grygorii

  reply	other threads:[~2014-09-26 10:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25 16:09 [PATCH 1/2] gpiolib: irqchip: use irq_find_mapping while removing irqchip Grygorii Strashko
2014-09-25 16:09 ` [RFC/RFT PATCH 2/2] gpiolib: irqchip: get rid of irq_base Grygorii Strashko
2014-09-26  8:44   ` Linus Walleij
2014-09-26 10:44     ` Grygorii Strashko [this message]
2014-09-26 12:33       ` Linus Walleij
2014-09-26  8:40 ` [PATCH 1/2] gpiolib: irqchip: use irq_find_mapping while removing irqchip Linus Walleij

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=5425439C.7010506@ti.com \
    --to=grygorii.strashko@ti.com \
    --cc=Yalin.Wang@sonymobile.com \
    --cc=gnurou@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.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 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.