aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-10-01 00:25:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-01 00:25:09 -0400
commit2161a2a644a6d33a29d68395518d103ed805758f (patch)
tree0e28b059ef641b27988c307ce319c1ca6a421a58
parentdbd8805b0ad46f04cababea5d01f072142961411 (diff)
parent9fb6de1b0bf4ec11573b76059da3c3b39ac7f2ff (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fix from Dmitry Torokhov: "One small change to make joydev (which is used by older games) to bind to devices that export Z axis but not X or Y (such as TRC rudder)" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: joydev - recognize devices with Z axis as joysticks
-rw-r--r--drivers/input/joydev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
index 5d11fea3c8ec..f3135ae22df4 100644
--- a/drivers/input/joydev.c
+++ b/drivers/input/joydev.c
@@ -950,6 +950,12 @@ static const struct input_device_id joydev_ids[] = {
950 .flags = INPUT_DEVICE_ID_MATCH_EVBIT | 950 .flags = INPUT_DEVICE_ID_MATCH_EVBIT |
951 INPUT_DEVICE_ID_MATCH_ABSBIT, 951 INPUT_DEVICE_ID_MATCH_ABSBIT,
952 .evbit = { BIT_MASK(EV_ABS) }, 952 .evbit = { BIT_MASK(EV_ABS) },
953 .absbit = { BIT_MASK(ABS_Z) },
954 },
955 {
956 .flags = INPUT_DEVICE_ID_MATCH_EVBIT |
957 INPUT_DEVICE_ID_MATCH_ABSBIT,
958 .evbit = { BIT_MASK(EV_ABS) },
953 .absbit = { BIT_MASK(ABS_WHEEL) }, 959 .absbit = { BIT_MASK(ABS_WHEEL) },
954 }, 960 },
955 { 961 {