Skip to content

Commit a5fad3a

Browse files
Demon000geertu
authored andcommitted
pinctrl: renesas: rzg2l: Remove useless wrappers
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> Link: https://patch.msgid.link/20251022074100.1994447-1-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent aa09d5a commit a5fad3a

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2494,16 +2494,6 @@ static void rzg2l_gpio_irq_enable(struct irq_data *d)
24942494
__rzg2l_gpio_irq_enable(d, true);
24952495
}
24962496

2497-
static int rzg2l_gpio_irq_set_type(struct irq_data *d, unsigned int type)
2498-
{
2499-
return irq_chip_set_type_parent(d, type);
2500-
}
2501-
2502-
static void rzg2l_gpio_irqc_eoi(struct irq_data *d)
2503-
{
2504-
irq_chip_eoi_parent(d);
2505-
}
2506-
25072497
static void rzg2l_gpio_irq_print_chip(struct irq_data *data, struct seq_file *p)
25082498
{
25092499
struct gpio_chip *gc = irq_data_get_irq_chip_data(data);
@@ -2539,8 +2529,8 @@ static const struct irq_chip rzg2l_gpio_irqchip = {
25392529
.irq_enable = rzg2l_gpio_irq_enable,
25402530
.irq_mask = irq_chip_mask_parent,
25412531
.irq_unmask = irq_chip_unmask_parent,
2542-
.irq_set_type = rzg2l_gpio_irq_set_type,
2543-
.irq_eoi = rzg2l_gpio_irqc_eoi,
2532+
.irq_set_type = irq_chip_set_type_parent,
2533+
.irq_eoi = irq_chip_eoi_parent,
25442534
.irq_print_chip = rzg2l_gpio_irq_print_chip,
25452535
.irq_set_affinity = irq_chip_set_affinity_parent,
25462536
.irq_set_wake = rzg2l_gpio_irq_set_wake,
@@ -2640,7 +2630,7 @@ static void rzg2l_gpio_irq_restore(struct rzg2l_pinctrl *pctrl)
26402630
* interrupt.
26412631
*/
26422632
raw_spin_lock_irqsave(&pctrl->lock, flags);
2643-
ret = rzg2l_gpio_irq_set_type(data, irqd_get_trigger_type(data));
2633+
ret = irq_chip_set_type_parent(data, irqd_get_trigger_type(data));
26442634
if (!ret && !irqd_irq_disabled(data))
26452635
__rzg2l_gpio_irq_enable(data, false);
26462636
raw_spin_unlock_irqrestore(&pctrl->lock, flags);

0 commit comments

Comments
 (0)