]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: davinci: implement .get_direction()
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 9 Jan 2026 13:08:32 +0000 (14:08 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 12 Jan 2026 08:34:26 +0000 (09:34 +0100)
commitc18790018799155e58d5a11c6697f9c398bf8b60
tree67de31b77106829aeb4be34e0f8ee773b9c708e5
parent0f61b1860cc3f52aef9036d7235ed1f017632193
gpio: davinci: implement .get_direction()

It's strongly recommended for GPIO drivers to always implement the
.get_direction() callback - even for fixed-direction controllers.

GPIO core will even emit a warning if the callback is missing, when
users try to read the direction of a pin.

Implement .get_direction() for gpio-davinci.

Reported-by: Michael Walle <mwalle@kernel.org>
Closes: https://lore.kernel.org/all/DFJAFK3DTBOZ.3G2P3A5IH34GF@kernel.org/
Reviewed-by: Linus Walleij <linusw@kernel.org>
Fixes: a060b8c511ab ("gpiolib: implement low-level, shared GPIO support")
Tested-by: Michael Walle <mwalle@kernel.org> # on sa67
Link: https://lore.kernel.org/r/20260109130832.27326-1-bartosz.golaszewski@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-davinci.c