2003-02-21 15:39:56

by Stelian Pop

[permalink] [raw]
Subject: [PATCH 2.4.21-pre4-bk] make mousedev accept the jogdial

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 <[email protected]>