mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.4.21-pre4-bk] make mousedev accept the jogdial
@ 2003-02-21 15:49 Stelian Pop
  0 siblings, 0 replies; only message in thread
From: Stelian Pop @ 2003-02-21 15:49 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Marcelo Tosatti, Alan Cox

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-21 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 15:49 [PATCH 2.4.21-pre4-bk] make mousedev accept the jogdial Stelian Pop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®