HID: ntrig: fix touch events
authorRafi Rubin <rafi@seas.upenn.edu>
Wed, 10 Mar 2010 15:10:28 +0000 (16:10 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 10 Mar 2010 15:10:28 +0000 (16:10 +0100)
commit2886539d5e649c22a6d2107eb431d3bee81e0e6d
tree3c552a2f31654171553a55bf2db45ec468b7c5d1
parenteff7f270e9a05688066f40589d7b44e1dcf335dc
HID: ntrig: fix touch events

This reinstates the lost unpressing of BTN_TOUCH.  To prevent undesireably
touch toggles this also deals with tip switch events.

Added a trap to prevent going out of bounds for hidinputs with empty reports.

Clear bits of unused buttons which result in misidentification.

Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ntrig.c