mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
platform/x86: peaq-wmi: Fix peaq_ignore_events_counter handling off by 1
If peaq_ignore_events_counter gets set to 1 we should skip polling 1 time, rather then ignoring it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
This commit is contained in:
parent
b77a537207
commit
c1bda752fd
@ -51,7 +51,7 @@ static void peaq_wmi_poll(struct input_polled_dev *dev)
|
||||
return;
|
||||
}
|
||||
|
||||
if (peaq_ignore_events_counter && --peaq_ignore_events_counter > 0)
|
||||
if (peaq_ignore_events_counter && --peaq_ignore_events_counter >= 0)
|
||||
return;
|
||||
|
||||
if (obj.integer.value) {
|
||||
|
Loading…
Reference in New Issue
Block a user