patch-2.4.4 linux/drivers/char/joystick/cobra.c

Next file: linux/drivers/char/joystick/cs461x.c
Previous file: linux/drivers/char/joystick/adi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/drivers/char/joystick/cobra.c linux/drivers/char/joystick/cobra.c
@@ -131,7 +131,7 @@
 			input_report_abs(dev, ABS_Y, ((data[i] >> 2) & 1) - ((data[i] >> 1) & 1));
 
 			for (j = 0; cobra_btn[j]; j++)
-				input_report_key(dev, cobra_btn[j], data[i] & (0x20 << i));
+				input_report_key(dev, cobra_btn[j], data[i] & (0x20 << j));
 
 		}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)