]> git.baikalelectronics.ru Git - kernel.git/commit
Input: joydev - decouple axis and button map ioctls from input constants
authorStephen Kitt <steve@sk2.org>
Wed, 12 Aug 2009 08:12:08 +0000 (01:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 12 Aug 2009 08:16:13 +0000 (01:16 -0700)
commit39dfc79d961a5b93eaf20719c0490b9af05cec12
tree84ac0a46fc34eb0619b4b01b2d1fbc059b5f83d5
parent21d510dc7e60ae48181c186cb00cb42ea52e755b
Input: joydev - decouple axis and button map ioctls from input constants

The KEY_MAX change in 2.6.28 changed the values of the JSIOCSBTNMAP and
JSIOCGBTNMAP constants; software compiled with the old values no longer
works with kernels following 2.6.28, because the ioctl switch statement
no longer matches the values given by the software. This patch handles
these ioctls independently of the length of data specified, and applies the
same treatment to JSIOCSAXMAP and JSIOCGAXMAP which currently depend on
ABS_MAX.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joydev.c