]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commited1fa736839eb97b1d066e36150df28251095eef
tree227901e6245c6ce469650da83eb46dc59e316da3
parentb79cbc55481ddc0b7cc68fb2072d93ee7eefbf8f
HID: wacom: generic: sync pad events only for actual packets

Commits d793ff8 and 4082da8 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