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

From: Vojtech Pavlik
Date: Thu Jul 29 2004 - 09:17:18 EST


You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input

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

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

Signed-off-by: Vojtech Pavlik <vojtech@xxxxxxx>


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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/