Commit d25a8c811515b7bbd2c864f0e20bd33312b4ea1a

Authored by Samu Onkalo
Committed by Linus Torvalds
1 parent 41e9a06236

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/hwmon/lis3lv02d.c
... ... @@ -276,6 +276,7 @@
276 276 input_report_abs(pidev->input, ABS_X, x - lis3_dev.xcalib);
277 277 input_report_abs(pidev->input, ABS_Y, y - lis3_dev.ycalib);
278 278 input_report_abs(pidev->input, ABS_Z, z - lis3_dev.zcalib);
  279 + input_sync(pidev->input);
279 280 }
280 281  
281 282