openwrt/package/kernel
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
..
acx-mac80211 adm5120: Remove unmaintained target 2019-05-03 21:27:12 +02:00
ar7-atm ar7-atm: fix function signatures with expected ones 2017-10-29 23:41:00 +01:00
ath10k-ct ath10k-ct: Update to current version 2019-05-11 16:37:11 +02:00
avila-wdt build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
brcm2708-gpu-fw brcm2708-gpu-fw: add fw required for camera module 2018-12-05 00:39:53 +02:00
broadcom-wl broadcom-wl: fix compilation with 4.14 2018-02-11 23:15:05 +01:00
button-hotplug button-hotplug: add KEY_POWER2 handling 2019-05-30 11:55:50 +02:00
cryptodev-linux cryptodev-linux: Update to 1.10 2019-01-12 19:09:43 +01:00
dtc/patches package: kernel: dtc: Add DTO support 2017-11-06 16:39:41 +01:00
gpio-button-hotplug gpio-button-hotplug: support interrupt properties 2019-05-31 10:30:03 +02:00
gpio-nct5104d kernel: gpio-nct5104d remove boardname check 2018-07-12 08:51:27 +02:00
hwmon-gsc build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
i2c-gpio-custom i2c-gpio-custom: Adapt to moved include file 2018-12-15 14:28:48 +01:00
kmod-sched-cake kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
lantiq ltq-atm/ltq-ptm: re-enable/fix reset_ppe() functionality for VR9 2019-03-10 16:49:31 +01:00
leds-apu2 kernel: leds-apu2 remove boardname check 2018-07-16 15:12:17 +02:00
linux kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
mac80211 ramips: mt7620: fix dependencies 2019-05-11 01:05:11 +02:00
mt76 kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
mwlwifi mwlwifi: Fix pcie timeout issue 2019-04-01 10:05:49 +02:00
nat46 nat46: Fix mirror hash 2019-02-07 11:15:11 +01:00
om-watchdog treewide: use the generic board_name function 2017-07-15 23:13:34 +02:00
rtc-rv5c386a build: use KERNEL_MAKE_FLAGS for kernel file compilations 2017-10-29 16:17:05 +01:00
rtl8812au-ct kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
spi-gpio-custom kernel: Deactivate *-gpio-custom drivers for 4.19 2018-12-15 14:28:48 +01:00
trelay trelay: Install hotplug and config files as 600 2018-09-19 09:41:28 +01:00
w1-gpio-custom kernel: Deactivate *-gpio-custom drivers for 4.19 2018-12-15 14:28:48 +01:00