[PATCH] Sidewinder debug information

From: Flameeyes
Date: Mon Dec 22 2003 - 13:15:49 EST


Hi,
with 2.6.0 kernel, I have some troubles with sidewinder support.
It works perfectly, but when using it, the kernel log is fullfilled by
messages like these:

sidewinder.c: Read 5 triplets. [77773]
sidewinder.c: Read 5 triplets. [77773]

so dmesg command it's useless.
With the attached patch the SWDEBUG is removed and the messages aren't
printed.

--
Flameeyes <dgp85@xxxxxxxxxxxxxxxxxxxxx>
You can find LIRC for 2.6 kernels at
http://flameeyes.web.ctonet.it/
--- linux/drivers/input/joystick/sidewinder.c.orig 2003-12-22 19:05:48.147132360 +0000
+++ linux/drivers/input/joystick/sidewinder.c 2003-12-22 19:05:54.770125512 +0000
@@ -45,8 +45,6 @@ MODULE_LICENSE("GPL");
* as well as break everything.
*/

-#define SW_DEBUG
-
#define SW_START 400 /* The time we wait for the first bit [400 us] */
#define SW_STROBE 45 /* Max time per bit [45 us] */
#define SW_TIMEOUT 4000 /* Wait for everything to settle [4 ms] */