[PATCH 2.4.21-pre4-bk] make mousedev accept the jogdial

From: Stelian Pop (stelian@popies.net)
Date: Fri Feb 21 2003 - 10:49:53 EST


Hi,

The following patch is required in order to make the input subsystem
accept the Sony Vaio jogdial as a valid input device.

A similar fix want into the 2.5 tree.

Marcelo, Alan, please apply.

Thanks.

Stelian.

===== drivers/input/mousedev.c 1.5 vs edited =====
--- 1.5/drivers/input/mousedev.c Tue Feb 5 08:49:25 2002
+++ edited/drivers/input/mousedev.c Fri Feb 7 11:20:54 2003
@@ -409,10 +409,13 @@
         int minor = 0;
 
         if (!test_bit(EV_KEY, dev->evbit) ||
- (!test_bit(BTN_LEFT, dev->keybit) && !test_bit(BTN_TOUCH, dev->keybit)))
+ (!test_bit(BTN_LEFT, dev->keybit) &&
+ !test_bit(BTN_MIDDLE, dev->keybit) &&
+ !test_bit(BTN_TOUCH, dev->keybit)))
                 return NULL;
 
         if ((!test_bit(EV_REL, dev->evbit) || !test_bit(REL_X, dev->relbit)) &&
+ (!test_bit(EV_REL, dev->evbit) || !test_bit(REL_WHEEL, dev->relbit)) &&
             (!test_bit(EV_ABS, dev->evbit) || !test_bit(ABS_X, dev->absbit)))
                 return NULL;
 

-- 
Stelian Pop <stelian@popies.net>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:33 EST