[PATCH v1 0/2] gpio: More cleanups to legacy header

Andy Shevchenko posted 2 patches 8 months, 2 weeks ago
drivers/gpio/gpiolib.c | 13 +++++++++++++
include/linux/gpio.h   | 25 -------------------------
2 files changed, 13 insertions(+), 25 deletions(-)
[PATCH v1 0/2] gpio: More cleanups to legacy header
Posted by Andy Shevchenko 8 months, 2 weeks ago
If I'm not missing anything the 'struct gpio' is not used and
GPIO_DYNAMIC_* constants nowadays are private to gpiolib.c.
Hence this series.

Note, this seems already the case for the upcoming v6.16 cycle, hence
I would like to route these patches as fixes to it to prevent any possible
use of the mentioned definitions in a new code.

Andy Shevchenko (2):
  gpio: Remove unused 'struct gpio' definition
  gpiolib: Move GPIO_DYNAMIC_* constants to its only user

 drivers/gpio/gpiolib.c | 13 +++++++++++++
 include/linux/gpio.h   | 25 -------------------------
 2 files changed, 13 insertions(+), 25 deletions(-)

-- 
2.47.2
Re: [PATCH v1 0/2] gpio: More cleanups to legacy header
Posted by Bartosz Golaszewski 8 months ago
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>


On Sat, 31 May 2025 22:55:42 +0300, Andy Shevchenko wrote:
> If I'm not missing anything the 'struct gpio' is not used and
> GPIO_DYNAMIC_* constants nowadays are private to gpiolib.c.
> Hence this series.
> 
> Note, this seems already the case for the upcoming v6.16 cycle, hence
> I would like to route these patches as fixes to it to prevent any possible
> use of the mentioned definitions in a new code.
> 
> [...]

Applied, thanks!

[1/2] gpio: Remove unused 'struct gpio' definition
      https://git.kernel.org/brgl/linux/c/9b4d4c952e28f97c5e653c8b9453690f7e63cc5a
[2/2] gpiolib: Move GPIO_DYNAMIC_* constants to its only user
      https://git.kernel.org/brgl/linux/c/6595ea2761df191c2ec500d5f54b57592b969f5c

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>