]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: TODO: add a task for removing MMIO-specific fields from gpio_chip
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 27 May 2025 11:13:53 +0000 (13:13 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 10 Jun 2025 09:41:01 +0000 (11:41 +0200)
commit97a7ea2b8f4a9aec1f43435658343e046c2a4983
treee69d1fd8a51334d59bf745997b7930578c7bafbe
parent114ab5afdf6640d40c8982170ea78c127c983dad
gpio: TODO: add a task for removing MMIO-specific fields from gpio_chip

Currently for CONFIG_GPIO_GENERIC=y each struct gpio_chip object
contains the fields relevant only for gpio-mmio users. It's not an
insignificant number either as it's several pointers and integers.

It makes sense to remove these fields from struct gpio_chip into a
dedicated structure but this is not trivial due to how the bgpio_init()
function is implemented.

Add a task for tracking this rework.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250527111353.71540-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/TODO