Commit c1bda752 authored by Hans de Goede's avatar Hans de Goede Committed by Darren Hart (VMware)

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: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent b77a5372
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment