summaryrefslogtreecommitdiff
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2017-08-22 09:10:11 +0800
committerJiri Kosina <jkosina@suse.cz>2017-10-05 11:18:18 +0200
commit29cc309d8bf19a36c5196bf626662319af6e3c0b (patch)
tree7cda1e048d81ab5cb01ce761d7fec4f6a7020ec9 /include/linux/hid.h
parentb42a362e6d10c342004b183defcb9940331b6737 (diff)
downloadlwn-29cc309d8bf19a36c5196bf626662319af6e3c0b.tar.gz
lwn-29cc309d8bf19a36c5196bf626662319af6e3c0b.zip
HID: hid-multitouch: forward MSC_TIMESTAMP
Computes and forwards the device timestamp according to the specification. Many devices use a 16-bit timestamp field, with a resolution of 100us, therefore rolling around very frequently (every 6.5 seconds). To make sure there is no ambiguity, the timestamp reported to the input stack reset to 0 whenever the time between 2 received events is greater than MAX_TIMESTAMP_INTERVAL (1 second). Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index ab05a86269dc..47dd962d9a7a 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -289,6 +289,7 @@ struct hid_item {
#define HID_DG_DEVICEINDEX 0x000d0053
#define HID_DG_CONTACTCOUNT 0x000d0054
#define HID_DG_CONTACTMAX 0x000d0055
+#define HID_DG_SCANTIME 0x000d0056
#define HID_DG_BUTTONTYPE 0x000d0059
#define HID_DG_BARRELSWITCH2 0x000d005a
#define HID_DG_TOOLSERIALNUMBER 0x000d005b