Skip to contentSkip to conversation

spaceball: increment SPACEBALL_MAX_ID for 4000FLX Lefty

PATCH In review Nick Martin 2 participants 2 messages Jul 16, 2006 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spaceball: increment SPACEBALL_MAX_ID for 4000FLX Lefty

From: Nick Martin <[email protected]>

Although the Spaceball 4000FLX Lefty is already supported by the spaceball driver, it does not register properly due to SPACEBALL_MAX_ID being set too low. This patch increments SPACEBALL_MAX_ID such that the 4000FLX Lefty is properly recognized. No changes are needed in the actual code, this merely allows the existing code to be run for this device.

This patch has been tested with an actual Spaceball 4000FLX Lefty on kernel version 2.6.17.6.

---

Thanks,
-- Nick Martin
http://www.nimlabs.org/~nim

drivers/input/joystick/spaceball.c renamed from drivers/input/joystick/spaceball.c.orig +1 -1
@@ -50,7 +50,7 @@ MODULE_LICENSE("GPL");
  */
 
 #define SPACEBALL_MAX_LENGTH	128
-#define SPACEBALL_MAX_ID	8
+#define SPACEBALL_MAX_ID	9
 
 #define SPACEBALL_1003      1
 #define SPACEBALL_2003B     3
#1 lore raw
Quoted 9 lines · Nick Martin

From: Nick Martin <[email protected]>

Although the Spaceball 4000FLX Lefty is already supported by the spaceball driver, it does not register properly due to SPACEBALL_MAX_ID being set too low. This patch increments SPACEBALL_MAX_ID such that the 4000FLX Lefty is properly recognized. No changes are needed in the actual code, this merely allows the existing code to be run for this device.

Thank you Nick, will apply.

Signature · 1 line
Dmitry