immortalwrt/package
Christian Lamparter 0c2d984fca gpio-button-hotplug: convert to gpio descriptor (gpiod_) API
OpenWrt's special gpio-button-hotplug driver is still using
exclusively the legacy GPIO Subsystem gpio_ API.

While it still does work fine for most devices, upstream
linux is starting to convert platform support like that of
the APU2/3/4 to the new GPIOD LOOKUP tables that are not
supported by it.

Hence, this patch replaces the gpio_ calls present in
gpio-button-hotplug with gpiod_ equivalent wherever
it's possible. This allows the driver to use the
gpiod lookup tables and still have a fallback for
legacy platform data code that just sets button->gpio
set to the real button/switch GPIO.

As a bonus: the active_low logic is now being handled
by the linux's gpio subsystem too. Another issue that
was address is the of_handle leak in the dt parser
error path.

Tested with legacy platform data: x86_64: APU2, MX-100
Tested on OF: ATH79; MR18, APM821xx: Netgear WNDR4700,
	      RAMIPS: WL-330N3G
	      LANTIQ: AVM FritzBox 7360v1

Reported-by: Chris Blake <chrisrblake93@gmail.com>
Tested-by: Chris Blake <chrisrblake93@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-08-29 12:05:17 +08:00
..
base-files Merge Mainline 2021-08-29 00:53:33 +08:00
boot uboot-mediatek: pass console=tty1 for BPi-R2 2021-08-21 12:18:04 +08:00
devel Merge Mainline 2021-08-29 00:53:33 +08:00
emortal Merge Mainline 2021-08-29 00:53:33 +08:00
firmware linux-firmware: add 2G and 5G precal binaries for QCA99X0 2021-07-26 12:13:02 +08:00
kernel gpio-button-hotplug: convert to gpio descriptor (gpiod_) API 2021-08-29 12:05:17 +08:00
libs Merge Mainline 2021-08-29 00:53:33 +08:00
network Merge Mainline 2021-08-29 00:53:33 +08:00
system Merge Mainline 2021-08-29 00:53:33 +08:00
utils Merge Mainline 2021-08-29 00:53:33 +08:00
Makefile Merge Mainline 2021-05-13 23:01:12 +08:00