* [PATCH] pinctrl: renesas: rzg2l: remove useless wrappers
@ 2025-10-22 7:40 Cosmin Tanislav
2025-10-24 9:00 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Cosmin Tanislav @ 2025-10-22 7:40 UTC (permalink / raw)
Cc: Geert Uytterhoeven, Linus Walleij, Lad Prabhakar, Biju Das,
Claudiu Beznea, linux-renesas-soc, linux-gpio, linux-kernel,
Cosmin Tanislav
rzg2l_gpio_irq_set_type() and rzg2l_gpio_irqc_eoi() only call the
equivalent parent functions, replace their usage with the parent
functions and remove them.
Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
---
drivers/pinctrl/renesas/pinctrl-rzg2l.c | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
index 947bce7bfc0e..f25ecada5c69 100644
--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c
+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c
@@ -2494,16 +2494,6 @@ static void rzg2l_gpio_irq_enable(struct irq_data *d)
__rzg2l_gpio_irq_enable(d, true);
}
-static int rzg2l_gpio_irq_set_type(struct irq_data *d, unsigned int type)
-{
- return irq_chip_set_type_parent(d, type);
-}
-
-static void rzg2l_gpio_irqc_eoi(struct irq_data *d)
-{
- irq_chip_eoi_parent(d);
-}
-
static void rzg2l_gpio_irq_print_chip(struct irq_data *data, struct seq_file *p)
{
struct gpio_chip *gc = irq_data_get_irq_chip_data(data);
@@ -2539,8 +2529,8 @@ static const struct irq_chip rzg2l_gpio_irqchip = {
.irq_enable = rzg2l_gpio_irq_enable,
.irq_mask = irq_chip_mask_parent,
.irq_unmask = irq_chip_unmask_parent,
- .irq_set_type = rzg2l_gpio_irq_set_type,
- .irq_eoi = rzg2l_gpio_irqc_eoi,
+ .irq_set_type = irq_chip_set_type_parent,
+ .irq_eoi = irq_chip_eoi_parent,
.irq_print_chip = rzg2l_gpio_irq_print_chip,
.irq_set_affinity = irq_chip_set_affinity_parent,
.irq_set_wake = rzg2l_gpio_irq_set_wake,
@@ -2640,7 +2630,7 @@ static void rzg2l_gpio_irq_restore(struct rzg2l_pinctrl *pctrl)
* interrupt.
*/
raw_spin_lock_irqsave(&pctrl->lock, flags);
- ret = rzg2l_gpio_irq_set_type(data, irqd_get_trigger_type(data));
+ ret = irq_chip_set_type_parent(data, irqd_get_trigger_type(data));
if (!ret && !irqd_irq_disabled(data))
__rzg2l_gpio_irq_enable(data, false);
raw_spin_unlock_irqrestore(&pctrl->lock, flags);
--
2.51.1.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pinctrl: renesas: rzg2l: remove useless wrappers
2025-10-22 7:40 [PATCH] pinctrl: renesas: rzg2l: remove useless wrappers Cosmin Tanislav
@ 2025-10-24 9:00 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2025-10-24 9:00 UTC (permalink / raw)
To: Cosmin Tanislav
Cc: Linus Walleij, Lad Prabhakar, Biju Das, Claudiu Beznea,
linux-renesas-soc, linux-gpio, linux-kernel
On Thu, 23 Oct 2025 at 20:27, Cosmin Tanislav
<cosmin-gabriel.tanislav.xa@renesas.com> wrote:
> rzg2l_gpio_irq_set_type() and rzg2l_gpio_irqc_eoi() only call the
> equivalent parent functions, replace their usage with the parent
> functions and remove them.
>
> Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-pinctrl for v6.19.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-24 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-22 7:40 [PATCH] pinctrl: renesas: rzg2l: remove useless wrappers Cosmin Tanislav
2025-10-24 9:00 ` Geert Uytterhoeven
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).