]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'input/next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 9 Nov 2011 00:54:14 +0000 (11:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 9 Nov 2011 00:54:14 +0000 (11:54 +1100)
1  2 
drivers/input/keyboard/Kconfig
drivers/input/tablet/wacom_sys.c
drivers/input/tablet/wacom_wac.c

Simple merge
Simple merge
index da0d8761e778cfd8f79e64b26a0ce3acd8cf60c5,6b9adc7bec6ea5afa1ab1860de41222edf0216c8..ecfcbc8144dca62757b105b5275e71f3b8371b64
@@@ -799,10 -799,15 +799,13 @@@ static int wacom_bpt_touch(struct wacom
        unsigned char *data = wacom->data;
        int i;
  
+       if (data[0] != 0x02)
+           return 0;
        for (i = 0; i < 2; i++) {
 -              int p = data[9 * i + 2];
 -              bool touch = p && !wacom->shared->stylus_in_proximity;
 +              int offset = (data[1] & 0x80) ? (8 * i) : (9 * i);
 +              bool touch = data[offset + 3] & 0x80;
  
 -              input_mt_slot(input, i);
 -              input_mt_report_slot_state(input, MT_TOOL_FINGER, touch);
                /*
                 * Touch events need to be disabled while stylus is
                 * in proximity because user's hand is resting on touchpad