You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
afc056d7dc
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> |
5 years ago | |
---|---|---|
.. | ||
acx-mac80211 | 5 years ago | |
ar7-atm | 7 years ago | |
ath10k-ct | 5 years ago | |
avila-wdt | 7 years ago | |
brcm2708-gpu-fw | 6 years ago | |
broadcom-wl | 6 years ago | |
button-hotplug | 5 years ago | |
cryptodev-linux | 5 years ago | |
dtc/patches | 7 years ago | |
gpio-button-hotplug | 5 years ago | |
gpio-nct5104d | 6 years ago | |
hwmon-gsc | 7 years ago | |
i2c-gpio-custom | 6 years ago | |
kmod-sched-cake | 5 years ago | |
lantiq | 5 years ago | |
leds-apu2 | 6 years ago | |
linux | 5 years ago | |
mac80211 | 5 years ago | |
mt76 | 5 years ago | |
mwlwifi | 5 years ago | |
nat46 | 5 years ago | |
om-watchdog | 7 years ago | |
rtc-rv5c386a | 7 years ago | |
rtl8812au-ct | 5 years ago | |
spi-gpio-custom | 6 years ago | |
trelay | 6 years ago | |
w1-gpio-custom | 6 years ago |