patch-2.4.15 linux/drivers/usb/hid.h
Next file: linux/drivers/usb/hub.c
Previous file: linux/drivers/usb/hid-input.c
Back to the patch index
Back to the overall index
-  Lines: 19
-  Date:
Tue Nov 13 17:45:27 2001
-  Orig file: 
v2.4.14/linux/drivers/usb/hid.h
-  Orig date: 
Sun Sep 23 11:41:00 2001
diff -u --recursive --new-file v2.4.14/linux/drivers/usb/hid.h linux/drivers/usb/hid.h
@@ -234,7 +234,8 @@
 	unsigned  hid;			/* hid usage code */
 	__u16     code;			/* input driver code */
 	__u8      type;			/* input driver type */
-	__u8	  hat;			/* hat switch fun */
+	__s8	  hat_min;		/* hat switch fun */
+	__s8	  hat_max;		/* ditto */
 };
 
 struct hid_field {
@@ -362,7 +363,7 @@
 
 #endif
 
-#define IS_INPUT_APPLICATION(a) ((a >= 0x00010000) && (a <= 0x00010008))
+#define IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || ( a == 0x000c0001))
 
 int hid_open(struct hid_device *);
 void hid_close(struct hid_device *);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)