diff mbox

hid: ignore digitizer usage Undefined (0x00)

Message ID 20100527151808.GA484@alittletooquiet.net (mailing list archive)
State Accepted
Commit 8c8b01c38a70661d663175d355fdea85ca082272
Headers show

Commit Message

Forest Bond May 27, 2010, 3:18 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 7a0d2e4..6b10e5a 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -301,6 +301,9 @@  static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
 
 	case HID_UP_DIGITIZER:
 		switch (usage->hid & 0xff) {
+		case 0x00: /* Undefined */
+			goto ignore;
+
 		case 0x30: /* TipPressure */
 			if (!test_bit(BTN_TOUCH, input->keybit)) {
 				device->quirks |= HID_QUIRK_NOTOUCH;