projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e9a06
)
lis3lv02d: send sync event
author
Samu Onkalo
<
[email protected]
>
Tue, 15 Dec 2009 02:01:38 +0000
(18:01 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 15 Dec 2009 16:53:35 +0000
(08:53 -0800)
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 <
[email protected]
>
Tested-by: Éric Piel <
[email protected]
>
Acked-by: Éric Piel <
[email protected]
>
Cc: Pavel Machek <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/hwmon/lis3lv02d.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lis3lv02d.c
b/drivers/hwmon/lis3lv02d.c
index cf5afb9a10abbd9af3432dce36249a23edfcab0d..7f43a3b62a2471ac2fb55378dfd862ff562e6c4d 100644
(file)
--- a/
drivers/hwmon/lis3lv02d.c
+++ b/
drivers/hwmon/lis3lv02d.c
@@
-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);
}