immortalwrt/package/kernel/gpio-button-hotplug/src
Petr Štetiar 2f51547027 gpio-button-hotplug: fix wrong initial seen value
Currently the generated event contains wrong seen value, when the button
is pressed for the first time:

 rmmod gpio_button_hotplug; modprobe gpio_button_hotplug
 [ pressing the wps key immediately after modprobe ]
 gpio-keys: create event, name=wps, seen=1088, pressed=1

So this patch adds a check for this corner case and makes seen=0 if the
button is pressed for the first time.

Tested-by: Kuan-Yi Li <kyli.tw@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2021-08-27 12:28:30 +08:00
..
gpio-button-hotplug.c gpio-button-hotplug: fix wrong initial seen value 2021-08-27 12:28:30 +08:00
Makefile fix & merge 2019-09-30 13:21:19 +08:00