From: Dmitry Torokhov Date: Sat, 5 Aug 2006 02:53:24 +0000 (-0400) Subject: Input: ati_remote - add missing input_sync() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c3c38fbd0cc8cc200a65b2ca7700e4dddedc13a0;p=linux-beck.git Input: ati_remote - add missing input_sync() When emulating button toggle drivers need to send input_sync() between 'down' and 'up' events, otherwise some users might miss keypress because device's state is only considered finalized after EV_SYN/SYN_REPORT is received. Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c index bdf144bf7f1b..5a56f6cb36a8 100644 --- a/drivers/usb/input/ati_remote.c +++ b/drivers/usb/input/ati_remote.c @@ -489,6 +489,7 @@ static void ati_remote_input_report(struct urb *urb, struct pt_regs *regs) input_regs(dev, regs); input_event(dev, ati_remote_tbl[index].type, ati_remote_tbl[index].code, 1); + input_sync(dev); input_event(dev, ati_remote_tbl[index].type, ati_remote_tbl[index].code, 0); input_sync(dev);