patch-1.3.4 linux/drivers/char/atixlmouse.c
Next file: linux/drivers/char/busmouse.c
Previous file: linux/drivers/block/xd.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Jun 26 11:06:50 1995
- Orig file:
v1.3.3/linux/drivers/char/atixlmouse.c
- Orig date:
Mon Jan 16 07:17:35 1995
diff -u --recursive --new-file v1.3.3/linux/drivers/char/atixlmouse.c linux/drivers/char/atixlmouse.c
@@ -128,19 +128,19 @@
return -EAGAIN;
ATIXL_MSE_DISABLE_UPDATE();
/* Allowed interrupts to occur during data gathering - shouldn't hurt */
- put_fs_byte((char)(~mouse.latch_buttons&7) | 0x80 , buffer);
+ put_user((char)(~mouse.latch_buttons&7) | 0x80 , buffer);
if (mouse.dx < -127)
mouse.dx = -127;
if (mouse.dx > 127)
mouse.dx = 127;
- put_fs_byte((char)mouse.dx, buffer + 1);
+ put_user((char)mouse.dx, buffer + 1);
if (mouse.dy < -127)
mouse.dy = -127;
if (mouse.dy > 127)
mouse.dy = 127;
- put_fs_byte((char)-mouse.dy, buffer + 2);
+ put_user((char)-mouse.dy, buffer + 2);
for(i = 3; i < count; i++)
- put_fs_byte(0x00, buffer + i);
+ put_user(0x00, buffer + i);
mouse.dx = 0;
mouse.dy = 0;
mouse.latch_buttons = mouse.buttons;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this