gpio: aggregator: refactor the forwarder registration part
authorThomas Richard <thomas.richard@bootlin.com>
Mon, 11 Aug 2025 13:25:47 +0000 (15:25 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Aug 2025 13:39:31 +0000 (15:39 +0200)
commit10d022efe2c4bb2020a07b2e4d94b658ce30aca4
treea5dfa27529aabe51cf140d81a5edd7eb94b4981d
parentc44ce91b8ada680074aa976e61fcef5633e6f086
gpio: aggregator: refactor the forwarder registration part

Add a new function gpiochip_fwd_register(), which finalizes the
initialization of the forwarder and registers the corresponding gpiochip.

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-4-29f0cbbdfb30@bootlin.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-aggregator.c