Skip to content

Commit f52f40b

Browse files
committed
Merge tag 'renesas-pinctrl-for-v6.13-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: renesas: Updates for v6.13 (take two) - Use the gpiochip_populate_parent_fwspec_twocell() helper. Signed-off-by: Linus Walleij <[email protected]>
2 parents 1c8ace2 + f407af7 commit f52f40b

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

drivers/pinctrl/renesas/pinctrl-rzg2l.c

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,21 +2433,6 @@ static int rzg2l_gpio_child_to_parent_hwirq(struct gpio_chip *gc,
24332433
return ret;
24342434
}
24352435

2436-
static int rzg2l_gpio_populate_parent_fwspec(struct gpio_chip *chip,
2437-
union gpio_irq_fwspec *gfwspec,
2438-
unsigned int parent_hwirq,
2439-
unsigned int parent_type)
2440-
{
2441-
struct irq_fwspec *fwspec = &gfwspec->fwspec;
2442-
2443-
fwspec->fwnode = chip->irq.parent_domain->fwnode;
2444-
fwspec->param_count = 2;
2445-
fwspec->param[0] = parent_hwirq;
2446-
fwspec->param[1] = parent_type;
2447-
2448-
return 0;
2449-
}
2450-
24512436
static void rzg2l_gpio_irq_restore(struct rzg2l_pinctrl *pctrl)
24522437
{
24532438
struct irq_domain *domain = pctrl->gpio_chip.irq.domain;
@@ -2649,7 +2634,7 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *pctrl)
26492634
girq->fwnode = dev_fwnode(pctrl->dev);
26502635
girq->parent_domain = parent_domain;
26512636
girq->child_to_parent_hwirq = rzg2l_gpio_child_to_parent_hwirq;
2652-
girq->populate_parent_alloc_arg = rzg2l_gpio_populate_parent_fwspec;
2637+
girq->populate_parent_alloc_arg = gpiochip_populate_parent_fwspec_twocell;
26532638
girq->child_irq_domain_ops.free = rzg2l_gpio_irq_domain_free;
26542639
girq->init_valid_mask = rzg2l_init_irq_valid_mask;
26552640

0 commit comments

Comments
 (0)