Input: evdev - Don't hold wakelock when no data is available to user-space
authorArve Hjønnevåg <arve@android.com>
Tue, 24 Jan 2012 01:15:45 +0000 (17:15 -0800)
committerArve Hjønnevåg <arve@android.com>
Wed, 1 Feb 2012 00:00:26 +0000 (16:00 -0800)
commit7cc846069a8a9116d8c81526c459070eed0e3477
treeeaf2ab903401f726d6b4dd42d232c18d368e7f7c
parent0e80804a2e8134e31d4d32679bdfff070fc64bca
Input: evdev - Don't hold wakelock when no data is available to user-space

If there is no SYN_REPORT event in the buffer the buffer data is invisible
to user-space. The wakelock should not be held in this case.

Change-Id: Idae890ff0da8eb46a2cfce61a95b3a97252551ad
Signed-off-by: Arve Hjønnevåg <arve@android.com>
drivers/input/evdev.c