Skip to content

gpio: aspeed: remove the "gpiolib.h" include

Bartosz Golaszewski linux-arm-kernel linux-aspeed linux-gpio lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20251015-aspeed-gpiolib-include-249a3529efd5

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3gpio: rename gpio_chip_hwgpio() to gpiod_hwgpio()drivers/gpio/gpio-aspeed.c drivers/gpio/gpiolib-cdev.c drivers/gpio/gpiolib-sysfs.c +2 more+40 -400 replies
2/3gpio: export gpiod_hwgpio()drivers/gpio/gpiolib.c drivers/gpio/gpiolib.h include/linux/gpio/consumer.h+15 -80 replies
3/3gpio: aspeed: remove unneeded includedrivers/gpio/gpio-aspeed.c+0 -10 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrew JefferyLinus Walleij
SeriesR-b R-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] gpio: aspeed: remove the "gpiolib.h" include

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.

---
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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>