diff options
author | Ping Cheng <pinglinux@gmail.com> | 2017-04-04 12:31:07 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-04-06 14:51:54 +0200 |
commit | ed1fa736839eb97b1d066e36150df28251095eef (patch) | |
tree | 227901e6245c6ce469650da83eb46dc59e316da3 /drivers/hid/wacom_wac.h | |
parent | b79cbc55481ddc0b7cc68fb2072d93ee7eefbf8f (diff) | |
download | lwn-ed1fa736839eb97b1d066e36150df28251095eef.tar.gz lwn-ed1fa736839eb97b1d066e36150df28251095eef.zip |
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>
Diffstat (limited to 'drivers/hid/wacom_wac.h')
-rw-r--r-- | drivers/hid/wacom_wac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h index 839bd4b6388c..570d29582b82 100644 --- a/drivers/hid/wacom_wac.h +++ b/drivers/hid/wacom_wac.h @@ -301,6 +301,7 @@ struct hid_data { int bat_charging; int bat_connected; int ps_connected; + bool pad_input_event_flag; }; struct wacom_remote_data { |