From: Stephen Kitt Date: Wed, 12 Aug 2009 08:12:08 +0000 (-0700) Subject: Input: joydev - decouple axis and button map ioctls from input constants X-Git-Tag: v2.6.31-rc8~44^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec8b4b7085605e801a7740a2c3c33256aebe249c;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed