classmate-laptop: always call input_sync() after input_report_switch()
authorCarlos Alberto Lopez Perez <clopez@igalia.com>
Thu, 2 Aug 2012 17:50:21 +0000 (19:50 +0200)
committerMatthew Garrett <mjg@redhat.com>
Fri, 17 Aug 2012 21:34:42 +0000 (17:34 -0400)
commitad20c73b05ea40cfdb42758506fb6b6befa3c9e5
tree07eeadff66cf83c353d9f3ef115c9530484701c5
parenta4f46bb9fa84642e356898ee44b670989622f8bb
classmate-laptop: always call input_sync() after input_report_switch()

Due to commit cdda911c34006f1089f3c87b1a1f31ab3a4722f2 evdev only
becomes readable when the buffer contains an EV_SYN/SYN_REPORT event.

So in order to read the tablet sensor data as it happens we need to
ensure that we always call input_sync() after input_report_switch()

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/classmate-laptop.c