From: Forest Bond Date: Tue, 13 Jul 2010 21:50:57 +0000 (+0200) Subject: HID: ignore digitizer usage Undefined (0x00) X-Git-Tag: v3.0~4146^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c8b01c38a70661d663175d355fdea85ca082272;p=platform%2Fkernel%2Flinux-amlogic.git HID: ignore digitizer usage Undefined (0x00) 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 Signed-off-by: Forest Bond Signed-off-by: Jiri Kosina --- 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;