[PATCH 46/47] Fix a missing index in tmdc.c

Vojtech Pavlik
2004-07-29T14:11:27Z

ChangeSet@1.1858, 2004-07-29 13:42:55+02:00, vojtech@suse.cz
input: Fix a missing index in tmdc.c

Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>

tmdc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/joystick/tmdc.c b/drivers/input/joystick/tmdc.c
--- a/drivers/input/joystick/tmdc.c Thu Jul 29 14:38:28 2004
+++ b/drivers/input/joystick/tmdc.c Thu Jul 29 14:38:28 2004
@@ -322,7 +322,7 @@
tmdc->dev[j].evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);

for (i = 0; i < models[m].abs && i < TMDC_ABS; i++) {
- if (tmdc->abs[i] < 0) continue;
+ if (tmdc->abs[j][i] < 0) continue;
set_bit(tmdc->abs[j][i], tmdc->dev[j].absbit);
tmdc->dev[j].absmin[tmdc->abs[j][i]] = 8;
tmdc->dev[j].absmax[tmdc->abs[j][i]] = 248;