linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] gpio: aspeed: remove the "gpiolib.h" include
@ 2025-10-16  9:09 Bartosz Golaszewski
  2025-10-16  9:09 ` [PATCH 1/3] gpio: rename gpio_chip_hwgpio() to gpiod_hwgpio() Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bartosz Golaszewski @ 2025-10-16  9:09 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Joel Stanley, Andrew Jeffery,
	Kent Gibson
  Cc: linux-gpio, linux-arm-kernel, linux-aspeed, linux-kernel,
	Bartosz Golaszewski

gpiolib.h is a header internal to the GPIO core. Drivers should not
include them. gpio-aspeed only needs to be able to determine the
hardware offset of the GPIO given the descriptor. Expose the relevant
symbol in the consumer header which allows us to stop pulling in the
private one.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (3):
      gpio: rename gpio_chip_hwgpio() to gpiod_hwgpio()
      gpio: export gpiod_hwgpio()
      gpio: aspeed: remove unneeded include

 drivers/gpio/gpio-aspeed.c    |  7 +++--
 drivers/gpio/gpiolib-cdev.c   | 12 ++++-----
 drivers/gpio/gpiolib-sysfs.c  | 14 +++++-----
 drivers/gpio/gpiolib.c        | 59 ++++++++++++++++++++++++++-----------------
 drivers/gpio/gpiolib.h        |  8 ------
 include/linux/gpio/consumer.h |  2 ++
 6 files changed, 54 insertions(+), 48 deletions(-)
---
base-commit: 13863a59e410cab46d26751941980dc8f088b9b3
change-id: 20251015-aspeed-gpiolib-include-249a3529efd5

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-10-21  9:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-16  9:09 [PATCH 0/3] gpio: aspeed: remove the "gpiolib.h" include Bartosz Golaszewski
2025-10-16  9:09 ` [PATCH 1/3] gpio: rename gpio_chip_hwgpio() to gpiod_hwgpio() Bartosz Golaszewski
2025-10-16  9:09 ` [PATCH 2/3] gpio: export gpiod_hwgpio() Bartosz Golaszewski
2025-10-16  9:09 ` [PATCH 3/3] gpio: aspeed: remove unneeded include Bartosz Golaszewski
2025-10-17  6:31 ` [PATCH 0/3] gpio: aspeed: remove the "gpiolib.h" include Andrew Jeffery
2025-10-20 21:18 ` Linus Walleij
2025-10-21  9:01 ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).