lkml.org 
[lkml]   [2003]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 <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/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.027 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site