]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: export gpiod_hwgpio()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 16 Oct 2025 09:09:26 +0000 (11:09 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Oct 2025 08:35:58 +0000 (10:35 +0200)
commitd19f6451c6feefd6537b97efa5f3859681f243cb
tree41f0c066f9715577aac928fafd5ad1309920d4a7
parentdf900536e85819f6168783d5f6b3908d47811fdd
gpio: export gpiod_hwgpio()

Reading the GPIO hardware number from a descriptor is a valid use-case
outside of the GPIO core. Export the symbol to consumers of GPIO
descriptors.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20251016-aspeed-gpiolib-include-v1-2-31201c06d124@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/linux/gpio/consumer.h