diff options
Diffstat (limited to 'drivers/input/joystick/iforce/iforce-packets.c')
-rw-r--r-- | drivers/input/joystick/iforce/iforce-packets.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/input/joystick/iforce/iforce-packets.c b/drivers/input/joystick/iforce/iforce-packets.c index 8632d47a7fbe..808f05932a6f 100644 --- a/drivers/input/joystick/iforce/iforce-packets.c +++ b/drivers/input/joystick/iforce/iforce-packets.c | |||
@@ -155,7 +155,7 @@ static int mark_core_as_ready(struct iforce *iforce, unsigned short addr) | |||
155 | return -1; | 155 | return -1; |
156 | } | 156 | } |
157 | 157 | ||
158 | void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data, struct pt_regs *regs) | 158 | void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data) |
159 | { | 159 | { |
160 | struct input_dev *dev = iforce->dev; | 160 | struct input_dev *dev = iforce->dev; |
161 | int i; | 161 | int i; |
@@ -183,9 +183,6 @@ void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data, | |||
183 | 183 | ||
184 | case 0x01: /* joystick position data */ | 184 | case 0x01: /* joystick position data */ |
185 | case 0x03: /* wheel position data */ | 185 | case 0x03: /* wheel position data */ |
186 | |||
187 | input_regs(dev, regs); | ||
188 | |||
189 | if (HI(cmd) == 1) { | 186 | if (HI(cmd) == 1) { |
190 | input_report_abs(dev, ABS_X, (__s16) (((__s16)data[1] << 8) | data[0])); | 187 | input_report_abs(dev, ABS_X, (__s16) (((__s16)data[1] << 8) | data[0])); |
191 | input_report_abs(dev, ABS_Y, (__s16) (((__s16)data[3] << 8) | data[2])); | 188 | input_report_abs(dev, ABS_Y, (__s16) (((__s16)data[3] << 8) | data[2])); |
@@ -224,7 +221,6 @@ void iforce_process_packet(struct iforce *iforce, u16 cmd, unsigned char *data, | |||
224 | break; | 221 | break; |
225 | 222 | ||
226 | case 0x02: /* status report */ | 223 | case 0x02: /* status report */ |
227 | input_regs(dev, regs); | ||
228 | input_report_key(dev, BTN_DEAD, data[0] & 0x02); | 224 | input_report_key(dev, BTN_DEAD, data[0] & 0x02); |
229 | input_sync(dev); | 225 | input_sync(dev); |
230 | 226 | ||