summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorForest Bond <forest@alittletooquiet.net>2010-07-13 23:50:57 +0200
committerJiri Kosina <jkosina@suse.cz>2010-07-13 23:50:57 +0200
commit8c8b01c38a70661d663175d355fdea85ca082272 (patch)
tree6e0e06d1354a32f2ea313306a3fc8360b177472d /drivers/hid
parenta11b3fab94d4fb67297b76d0cb81612ebbff276e (diff)
downloadlwn-8c8b01c38a70661d663175d355fdea85ca082272.tar.gz
lwn-8c8b01c38a70661d663175d355fdea85ca082272.zip
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 <bbehrendt@msjvermont.org> Signed-off-by: Forest Bond <forest@alittletooquiet.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 7a0d2e4661a1..6b10e5afe770 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;