adi.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | adi.c (1bf21b3373df2b5bfa3c6d2dcd52344c7ee4cc58) |
---|---|
1/* 2 * Copyright (c) 1998-2005 Vojtech Pavlik 3 */ 4 5/* 6 * Logitech ADI joystick family driver for Linux 7 */ 8 --- 299 unchanged lines hidden (view full) --- 308 309/* 310 * adi_init_digital() sends a trigger & delay sequence 311 * to reset and initialize a Logitech joystick into digital mode. 312 */ 313 314static void adi_init_digital(struct gameport *gameport) 315{ | 1/* 2 * Copyright (c) 1998-2005 Vojtech Pavlik 3 */ 4 5/* 6 * Logitech ADI joystick family driver for Linux 7 */ 8 --- 299 unchanged lines hidden (view full) --- 308 309/* 310 * adi_init_digital() sends a trigger & delay sequence 311 * to reset and initialize a Logitech joystick into digital mode. 312 */ 313 314static void adi_init_digital(struct gameport *gameport) 315{ |
316 int seq[] = { 4, -2, -3, 10, -6, -11, -7, -9, 11, 0 }; | 316 static const int seq[] = { 4, -2, -3, 10, -6, -11, -7, -9, 11, 0 }; |
317 int i; 318 319 for (i = 0; seq[i]; i++) { 320 gameport_trigger(gameport); 321 if (seq[i] > 0) 322 msleep(seq[i]); 323 if (seq[i] < 0) { 324 mdelay(-seq[i]); --- 243 unchanged lines hidden --- | 317 int i; 318 319 for (i = 0; seq[i]; i++) { 320 gameport_trigger(gameport); 321 if (seq[i] > 0) 322 msleep(seq[i]); 323 if (seq[i] < 0) { 324 mdelay(-seq[i]); --- 243 unchanged lines hidden --- |