]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:27:02 +0000 (08:27 -0700)
commite276bbcae3a15314c94ae97283697d818fbe8a1b
tree07e1f642906c5cf214876b4e6777b9fcbd6db9d4
parent20a807a7b294ee58ab8a8b38bff9f04b6fc127c4
Input: joydev - decouple axis and button map ioctls from input constants

commit ec8b4b7085605e801a7740a2c3c33256aebe249c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/joydev.c