aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSamu Onkalo <samu.p.onkalo@nokia.com>2009-12-14 21:01:38 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:35 -0500
commitd25a8c811515b7bbd2c864f0e20bd33312b4ea1a (patch)
tree5f1a7e94da8e522ce53b9307b912b6468b2a0241 /drivers/hwmon
parent41e9a062361de204d3710038925ae7f356ebb40d (diff)
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/lis3lv02d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/lis3lv02d.c b/drivers/hwmon/lis3lv02d.c
index cf5afb9a10ab..7f43a3b62a24 100644
--- a/drivers/hwmon/lis3lv02d.c
+++ b/drivers/hwmon/lis3lv02d.c
@@ -276,6 +276,7 @@ static void lis3lv02d_joystick_poll(struct input_polled_dev *pidev)
276 input_report_abs(pidev->input, ABS_X, x - lis3_dev.xcalib); 276 input_report_abs(pidev->input, ABS_X, x - lis3_dev.xcalib);
277 input_report_abs(pidev->input, ABS_Y, y - lis3_dev.ycalib); 277 input_report_abs(pidev->input, ABS_Y, y - lis3_dev.ycalib);
278 input_report_abs(pidev->input, ABS_Z, z - lis3_dev.zcalib); 278 input_report_abs(pidev->input, ABS_Z, z - lis3_dev.zcalib);
279 input_sync(pidev->input);
279} 280}
280 281
281 282