Skip to contentSkip to conversation

LIS3LV02D: Send sync event

RFC PATCH Superseded Samu Onkalo 1 participant 1 message Nov 3, 2009 Hardware monitoring

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/10 LIS3LV02D: Send sync event

Send input_sync after each measurement round. This helps userspace to detect which reported values belongs to the same measurement.

---
 drivers/hwmon/lis3lv02d.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/hwmon/lis3lv02d.c +1 -0
index cf5afb9..7f43a3b 100644
@@ -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);
 }
 
 
Signature · 7 lines
1.5.6.3


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors