The kernel is supposed to handle multiple devices, static flags
in packet handling code will never work.
Tested-by: Tim Schumacher <timschumi@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
{
struct input_dev *dev = iforce->dev;
int i;
- static int being_used = 0;
-
- if (being_used)
- dev_warn(&iforce->dev->dev,
- "re-entrant call to iforce_process %d\n", being_used);
- being_used++;
#ifdef CONFIG_JOYSTICK_IFORCE_232
if (HI(iforce->expect_packet) == HI(cmd)) {
#endif
wake_up(&iforce->wait);
- if (!iforce->type) {
- being_used--;
+ if (!iforce->type)
return;
- }
switch (HI(cmd)) {
}
break;
}
- being_used--;
}
int iforce_get_id_packet(struct iforce *iforce, char *packet)