linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: rcar: drop references to "virtual" IRQ
@ 2013-10-11 17:44 Linus Walleij
  2013-10-11 19:48 ` Laurent Pinchart
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2013-10-11 17:44 UTC (permalink / raw)
  To: linux-gpio
  Cc: Alexandre Courbot, Linus Walleij, Magnus Damm, Laurent Pinchart

Rename the argument "virq" to just "irq", this IRQ isn't any
more "virtual" than any other Linux IRQ number, we use "hwirq"
for the actual hw-numbers, "virq" is just bogus.

Cc: Magnus Damm <damm@opensource.se>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/gpio/gpio-rcar.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
index e3745eb..65dbf87 100644
--- a/drivers/gpio/gpio-rcar.c
+++ b/drivers/gpio/gpio-rcar.c
@@ -266,16 +266,16 @@ static int gpio_rcar_to_irq(struct gpio_chip *chip, unsigned offset)
 	return irq_create_mapping(gpio_to_priv(chip)->irq_domain, offset);
 }
 
-static int gpio_rcar_irq_domain_map(struct irq_domain *h, unsigned int virq,
-				 irq_hw_number_t hw)
+static int gpio_rcar_irq_domain_map(struct irq_domain *h, unsigned int irq,
+				 irq_hw_number_t hwirq)
 {
 	struct gpio_rcar_priv *p = h->host_data;
 
-	dev_dbg(&p->pdev->dev, "map hw irq = %d, virq = %d\n", (int)hw, virq);
+	dev_dbg(&p->pdev->dev, "map hw irq = %d, irq = %d\n", (int)hwirq, irq);
 
-	irq_set_chip_data(virq, h->host_data);
-	irq_set_chip_and_handler(virq, &p->irq_chip, handle_level_irq);
-	set_irq_flags(virq, IRQF_VALID); /* kill me now */
+	irq_set_chip_data(irq, h->host_data);
+	irq_set_chip_and_handler(irq, &p->irq_chip, handle_level_irq);
+	set_irq_flags(irq, IRQF_VALID); /* kill me now */
 	return 0;
 }
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gpio: rcar: drop references to "virtual" IRQ
  2013-10-11 17:44 [PATCH] gpio: rcar: drop references to "virtual" IRQ Linus Walleij
@ 2013-10-11 19:48 ` Laurent Pinchart
  2013-10-14  7:01   ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent Pinchart @ 2013-10-11 19:48 UTC (permalink / raw)
  To: Linus Walleij
  Cc: linux-gpio, Alexandre Courbot, Magnus Damm, Laurent Pinchart

Hi Linus,

Thanks for the patch.

On Friday 11 October 2013 19:44:49 Linus Walleij wrote:
> Rename the argument "virq" to just "irq", this IRQ isn't any
> more "virtual" than any other Linux IRQ number, we use "hwirq"
> for the actual hw-numbers, "virq" is just bogus.
> 
> Cc: Magnus Damm <damm@opensource.se>
> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

As you maintain the GPIO tree, I don't think there's a need for me to take the 
patch in my tree and then send you a pull request, is there ? :-)

> ---
>  drivers/gpio/gpio-rcar.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c
> index e3745eb..65dbf87 100644
> --- a/drivers/gpio/gpio-rcar.c
> +++ b/drivers/gpio/gpio-rcar.c
> @@ -266,16 +266,16 @@ static int gpio_rcar_to_irq(struct gpio_chip *chip,
> unsigned offset) return irq_create_mapping(gpio_to_priv(chip)->irq_domain,
> offset); }
> 
> -static int gpio_rcar_irq_domain_map(struct irq_domain *h, unsigned int
> virq, -				 irq_hw_number_t hw)
> +static int gpio_rcar_irq_domain_map(struct irq_domain *h, unsigned int irq,
> +				 irq_hw_number_t hwirq)
>  {
>  	struct gpio_rcar_priv *p = h->host_data;
> 
> -	dev_dbg(&p->pdev->dev, "map hw irq = %d, virq = %d\n", (int)hw, virq);
> +	dev_dbg(&p->pdev->dev, "map hw irq = %d, irq = %d\n", (int)hwirq, irq);
> 
> -	irq_set_chip_data(virq, h->host_data);
> -	irq_set_chip_and_handler(virq, &p->irq_chip, handle_level_irq);
> -	set_irq_flags(virq, IRQF_VALID); /* kill me now */
> +	irq_set_chip_data(irq, h->host_data);
> +	irq_set_chip_and_handler(irq, &p->irq_chip, handle_level_irq);
> +	set_irq_flags(irq, IRQF_VALID); /* kill me now */
>  	return 0;
>  }
-- 
Regards,

Laurent Pinchart


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gpio: rcar: drop references to "virtual" IRQ
  2013-10-11 19:48 ` Laurent Pinchart
@ 2013-10-14  7:01   ` Linus Walleij
  0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2013-10-14  7:01 UTC (permalink / raw)
  To: Laurent Pinchart
  Cc: linux-gpio@vger.kernel.org, Alexandre Courbot, Magnus Damm,
	Laurent Pinchart

On Fri, Oct 11, 2013 at 9:48 PM, Laurent Pinchart
<laurent.pinchart@ideasonboard.com> wrote:
> On Friday 11 October 2013 19:44:49 Linus Walleij wrote:
>> Rename the argument "virq" to just "irq", this IRQ isn't any
>> more "virtual" than any other Linux IRQ number, we use "hwirq"
>> for the actual hw-numbers, "virq" is just bogus.
>>
>> Cc: Magnus Damm <damm@opensource.se>
>> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
>
> Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

Thanks!

> As you maintain the GPIO tree, I don't think there's a need for me to take the
> patch in my tree and then send you a pull request, is there ? :-)

No, I'm applying all these renaming patches today.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-14  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 17:44 [PATCH] gpio: rcar: drop references to "virtual" IRQ Linus Walleij
2013-10-11 19:48 ` Laurent Pinchart
2013-10-14  7:01   ` Linus Walleij

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).