immortalwrt/package
Christian Lamparter 26a8d4f516 gpio-button-hotplug: support interrupt properties
Upstream Linux's input gpio-keys driver supports
specifying a external interrupt for a gpio via the
'interrupts' properties as well as having support
for software debounce.

This patch ports these features to OpenWrt's event
version. Only the "pure" interrupt-driven support is
left behind, since this goes a bit against the "gpio"
in the "gpio-keys" and I don't have a real device to
test this with.

This patch also silences the generated warnings showing
up since 4.14 due to the 'constification' of the
struct gpio_keys_button *buttons variable in the
upstream struct gpio_keys_platform_data declaration.

gpio-button-hotplug.c: In function 'gpio_keys_get_devtree_pdata':
gpio-button-hotplug.c:392:10: warning: assignment discards 'const'
	qualifier from pointer target type [-Wdiscarded-qualifiers]
   button = &pdata->buttons[i++];
          ^
gpio-button-hotplug.c: In function 'gpio_keys_button_probe':
gpio-button-hotplug.c:537:12: warning: assignment discards 'const'
	qualifier from pointer target type [-Wdiscarded-qualifiers]
   bdata->b = &pdata->buttons[i];
            ^
gpio-button-hotplug.c: In function 'gpio_keys_probe':
gpio-button-hotplug.c:563:37: warning: initialization discards 'const'
	qualifier from pointer target type [-Wdiscarded-qualifiers]
   struct gpio_keys_button *button = &pdata->buttons[i];
                                   ^
Acked-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2021-08-27 12:28:05 +08:00
..
base-files base-files: fix option to make /var persistent 2021-08-24 12:08:02 +08:00
boot grub2: update to 2.06 2021-06-22 15:35:29 +08:00
devel gdb: update to 10.2 2021-08-22 12:15:19 +08:00
emortal automount: mark as nonshared 2021-08-11 17:33:23 +08:00
firmware linux-firmware: update to 20210511 2021-06-08 23:13:14 +08:00
kernel gpio-button-hotplug: support interrupt properties 2021-08-27 12:28:05 +08:00
libs openssl: bump to 1.1.1l 2021-08-27 12:23:23 +08:00
network ustp: add OpenWrt STP/RSTP daemon 2021-08-27 12:23:11 +08:00
system selinux-policy: update to version 0.9 2021-08-21 12:10:03 +08:00
utils busybox: fix compilation with GCC 10 2021-08-19 12:08:52 +08:00
Makefile build: fix opkg install step for large package selection 2021-05-12 23:27:23 +08:00