Input: fix force feedback upload issue in compat mode
authorAdam Dawidowski <drake_ster@wp.pl>
Mon, 2 Jun 2008 05:08:10 +0000 (01:08 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jun 2008 13:37:06 +0000 (09:37 -0400)
commitf2278f31d6feb9036eaa79f2e8abcce850420abd
tree85b6f3abd9f6e77c5073a8951e3ac5452bbabfb9
parent82547e9074a23d9d722a5f6053f4734566127da6
Input: fix force feedback upload issue in compat mode

Force feedback upload of effects through the event device (ioctl
EVIOCSFF) is not working in 32 bit applications running on 64-bit
kernel due to the fact that struct ff_effect contains a pointer,
resulting in the structure having different sizes in 64 and 32 bit
programs and causing difference in ioctl numbers.

[dtor@mail.ru: refactor to keep all ugliness in evdev]

Signed-off-by: Adam Dawidowski <drake_ster@wp.pl>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c