HID: ignore digitizer usage Undefined (0x00)
authorForest Bond <forest@alittletooquiet.net>
Tue, 13 Jul 2010 21:50:57 +0000 (23:50 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 13 Jul 2010 21:50:57 +0000 (23:50 +0200)
SMART Technologies has recommended this change to fix a problem reported
with SMART Board series interactive whiteboards.

A description of the device-specific symptom follows:

  When the board is connected my mouse bounces up to the top left corner.

Bjorn has tested this fix with model SB680.

Tested-by: Bjorn Behrendt <bbehrendt@msjvermont.org>
Signed-off-by: Forest Bond <forest@alittletooquiet.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c

index 7a0d2e4661a1244b02de5b511389fc1ea7bb68d5..6b10e5afe77093bc81ce36ae0189e5af00a88623 100644 (file)
@@ -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;