From: David Cohen <david.a.cohen@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org,
Alexandre Courbot <acourbot@nvidia.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Mathias Nyman <mathias.nyman@linux.intel.com>,
Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [PATCH] gpio: drop users of irq_set_chip_and_handler_name()
Date: Mon, 02 Dec 2013 10:27:52 -0800 [thread overview]
Message-ID: <529CD128.9000904@linux.intel.com> (raw)
In-Reply-To: <1385472771-26681-1-git-send-email-linus.walleij@linaro.org>
Hi Linus,
On 11/26/2013 05:32 AM, Linus Walleij wrote:
> Switch all users of irq_set_chip_and_handler_name() to simply
> use irq_set_chip_and_handler(), all just provide a boilerplate
> name like "demux" or "mux" - a fact which is anyway obvious
> from the hwirq number from the irqdomain now present in e.g.
> /proc/interrupts.
>
> Cc: David Cohen <david.a.cohen@linux.intel.com>
> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> Cc: Mathias Nyman <mathias.nyman@linux.intel.com>
> Cc: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> I'm challenging all users of this function to make an argument
> for it to stay in, and suspecting that this is mostly a copy
> and paste artifact...
> ---
> drivers/gpio/gpio-intel-mid.c | 3 +--
> drivers/gpio/gpio-lynxpoint.c | 3 +--
> drivers/gpio/gpio-msic.c | 7 +++----
> drivers/gpio/gpio-timberdale.c | 4 ++--
> 4 files changed, 7 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
> index be803af658ac..17f135046c7f 100644
> --- a/drivers/gpio/gpio-intel-mid.c
> +++ b/drivers/gpio/gpio-intel-mid.c
> @@ -358,8 +358,7 @@ static int intel_gpio_irq_map(struct irq_domain *d, unsigned int irq,
> {
> struct intel_mid_gpio *priv = d->host_data;
>
> - irq_set_chip_and_handler_name(irq, &intel_mid_irqchip,
> - handle_simple_irq, "demux");
> + irq_set_chip_and_handler(irq, &intel_mid_irqchip, handle_simple_irq);
> irq_set_chip_data(irq, priv);
> irq_set_irq_type(irq, IRQ_TYPE_NONE);
>
For intel-mid case:
Acked-by: David Cohen <david.a.cohen@linux.intel.com>
prev parent reply other threads:[~2013-12-02 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 13:32 [PATCH] gpio: drop users of irq_set_chip_and_handler_name() Linus Walleij
2013-11-29 10:20 ` Mika Westerberg
2013-12-02 18:27 ` David Cohen [this message]
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=529CD128.9000904@linux.intel.com \
--to=david.a.cohen@linux.intel.com \
--cc=acourbot@nvidia.com \
--cc=dan.carpenter@oracle.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=mika.westerberg@linux.intel.com \
/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.