lis3lv02d: send sync event
Send input_sync after each measurement round. This helps userspace to detect which reported values belongs to the same measurement. Signed-off-by: Samu Onkalo <samu.p.onkalo@nokia.com> Tested-by: Éric Piel <eric.piel@tremplin-utc.net> Acked-by: Éric Piel <eric.piel@tremplin-utc.net> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
41e9a06236
commit
d25a8c8115
|
@ -276,6 +276,7 @@ static void lis3lv02d_joystick_poll(struct input_polled_dev *pidev)
|
|||
input_report_abs(pidev->input, ABS_X, x - lis3_dev.xcalib);
|
||||
input_report_abs(pidev->input, ABS_Y, y - lis3_dev.ycalib);
|
||||
input_report_abs(pidev->input, ABS_Z, z - lis3_dev.zcalib);
|
||||
input_sync(pidev->input);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue