]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: sync pad events only for actual packets
authorPing Cheng <pinglinux@gmail.com>
Tue, 4 Apr 2017 19:31:07 +0000 (12:31 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 6 Apr 2017 12:51:54 +0000 (14:51 +0200)
commit2203c47a50cc3706d4503d6d452fd36af68fb7c7
tree227901e6245c6ce469650da83eb46dc59e316da3
parent4721324d4028fd7f0eecb46633a5629820d86299
HID: wacom: generic: sync pad events only for actual packets

Commits d198db6 and d3a035f introduced two pad usages which do not
actually send pad input events. To make sure we do not post empty
pad packets, pad_input_event_flag is introduced. Turn on the flag
for real pad input events so we can synchronize them properly.

Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h