projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b77a537
)
platform/x86: peaq-wmi: Fix peaq_ignore_events_counter handling off by 1
author
Hans de Goede
<hdegoede@redhat.com>
Tue, 11 Jul 2017 11:41:34 +0000
(13:41 +0200)
committer
Darren Hart (VMware)
<dvhart@infradead.org>
Tue, 11 Jul 2017 16:08:04 +0000
(09:08 -0700)
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>
drivers/platform/x86/peaq-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/peaq-wmi.c
b/drivers/platform/x86/peaq-wmi.c
index ca75b4dc437e21f2d36fdd2614a065b060dc8dce..77d1f90b079426dfc4f7cb708c19e09b103fed25 100644
(file)
--- a/
drivers/platform/x86/peaq-wmi.c
+++ b/
drivers/platform/x86/peaq-wmi.c
@@
-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) {