Commit 94689c08 authored by Samu Onkalo's avatar Samu Onkalo Committed by james toy

Send input_sync after each measurement round. This helps userspace to

detect which reported values belongs to the same measurement.
Signed-off-by: default avatarSamu Onkalo <samu.p.onkalo@nokia.com>
Tested-by: default avatarric Piel <eric.piel@tremplin-utc.net>
Acked-by: default avatarric Piel <eric.piel@tremplin-utc.net>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 8708cd57
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment