Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

gpio: aggregator: update gpiochip_fwd_setup_delay_line() parameters

Remove useless parameters of gpiochip_fwd_setup_delay_line().

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://lore.kernel.org/r/20250811-aaeon-up-board-pinctrl-support-v9-5-29f0cbbdfb30@bootlin.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Thomas Richard and committed by
Bartosz Golaszewski
b94cf35d 10d022ef

+6 -9
+6 -9
drivers/gpio/gpio-aggregator.c
··· 453 453 return line; 454 454 } 455 455 456 - static int gpiochip_fwd_setup_delay_line(struct device *dev, struct gpio_chip *chip, 457 - struct gpiochip_fwd *fwd) 456 + static int gpiochip_fwd_setup_delay_line(struct gpiochip_fwd *fwd) 458 457 { 459 - fwd->delay_timings = devm_kcalloc(dev, chip->ngpio, 458 + struct gpio_chip *chip = &fwd->chip; 459 + 460 + fwd->delay_timings = devm_kcalloc(chip->parent, chip->ngpio, 460 461 sizeof(*fwd->delay_timings), 461 462 GFP_KERNEL); 462 463 if (!fwd->delay_timings) ··· 469 468 return 0; 470 469 } 471 470 #else 472 - static int gpiochip_fwd_setup_delay_line(struct device *dev, struct gpio_chip *chip, 473 - struct gpiochip_fwd *fwd) 471 + static int gpiochip_fwd_setup_delay_line(struct gpiochip_fwd *fwd) 474 472 { 475 473 return 0; 476 474 } ··· 571 571 unsigned long features) 572 572 { 573 573 struct gpiochip_fwd *fwd; 574 - struct gpio_chip *chip; 575 574 unsigned int i; 576 575 int error; 577 576 578 577 fwd = devm_gpiochip_fwd_alloc(dev, ngpios); 579 578 if (IS_ERR(fwd)) 580 579 return fwd; 581 - 582 - chip = &fwd->chip; 583 580 584 581 for (i = 0; i < ngpios; i++) { 585 582 error = gpiochip_fwd_desc_add(fwd, descs[i], i); ··· 585 588 } 586 589 587 590 if (features & FWD_FEATURE_DELAY) { 588 - error = gpiochip_fwd_setup_delay_line(dev, chip, fwd); 591 + error = gpiochip_fwd_setup_delay_line(fwd); 589 592 if (error) 590 593 return ERR_PTR(error); 591 594 }