openwrt/package
Christian Lamparter afc056d7dc 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>
2019-05-31 10:30:03 +02:00
..
base-files base-files: add reboot only button handler 2019-05-30 11:55:49 +02:00
boot at91:renaming subtraget legacy to sam9x 2019-05-30 12:12:57 +02:00
devel valgrind: Add support for ARM64 architecture 2019-05-14 20:28:41 +02:00
firmware ipq40xx: Add support for Linksys EA8300 (Dallas) 2019-05-18 13:43:54 +02:00
kernel gpio-button-hotplug: support interrupt properties 2019-05-31 10:30:03 +02:00
libs uclient: bump to version 2019-05-30 2019-05-30 12:13:31 +00:00
network ppp: add config options to tune discovery timeout and attempts 2019-05-31 09:43:10 +02:00
system procd: update to latest git HEAD 2019-05-30 08:03:02 +02:00
utils busybox: fix: ip addr flush hangs when run by non-root user 2019-05-28 13:18:58 +02:00
Makefile build: add ABI_VERSION to binary package names 2019-01-19 14:32:12 +01:00