patch-2.4.19 linux-2.4.19/drivers/char/joystick/lightning.c
Next file: linux-2.4.19/drivers/char/joystick/pcigame.c
Previous file: linux-2.4.19/drivers/char/joystick/a3d.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/drivers/char/joystick/lightning.c
- Orig date:
Wed Sep 12 15:34:06 2001
diff -urN linux-2.4.18/drivers/char/joystick/lightning.c linux-2.4.19/drivers/char/joystick/lightning.c
@@ -77,7 +77,7 @@
static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons)
{
- struct l4 *l4 = gameport->private;
+ struct l4 *l4 = gameport->driver;
unsigned char status;
int i, result = -1;
@@ -110,7 +110,7 @@
static int l4_open(struct gameport *gameport, int mode)
{
- struct l4 *l4 = gameport->private;
+ struct l4 *l4 = gameport->driver;
if (l4->port != 0 && mode != GAMEPORT_MODE_COOKED)
return -1;
outb(L4_SELECT_ANALOG, L4_PORT);
@@ -188,7 +188,7 @@
{
int i, t;
int cal[4];
- struct l4 *l4 = gameport->private;
+ struct l4 *l4 = gameport->driver;
if (l4_getcal(l4->port, cal))
return -1;
@@ -248,7 +248,7 @@
l4->port = i * 4 + j;
gameport = &l4->gameport;
- gameport->private = l4;
+ gameport->driver = l4;
gameport->open = l4_open;
gameport->cooked_read = l4_cooked_read;
gameport->calibrate = l4_calibrate;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)