summaryrefslogtreecommitdiff
path: root/drivers/media/usb/sn9c102/sn9c102_core.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-09-15 18:14:42 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-21 12:56:43 (GMT)
commit8e6057b510aad354e017c6dfca7f386a0eb91b63 (patch)
treeac76cc2593f255325972f05bde025954f2d3b41c /drivers/media/usb/sn9c102/sn9c102_core.c
parentabd23295648a9e3ae72a806e70a510d3dcd8b374 (diff)
downloadlinux-fsl-qoriq-8e6057b510aad354e017c6dfca7f386a0eb91b63.tar.xz
[media] v4l: Convert drivers to use monotonic timestamps
Convert drivers using wall clock time (CLOCK_REALTIME) to timestamp from the monotonic timer (CLOCK_MONOTONIC). Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/sn9c102/sn9c102_core.c')
-rw-r--r--drivers/media/usb/sn9c102/sn9c102_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/sn9c102/sn9c102_core.c b/drivers/media/usb/sn9c102/sn9c102_core.c
index 7360586..8dbf0c7 100644
--- a/drivers/media/usb/sn9c102/sn9c102_core.c
+++ b/drivers/media/usb/sn9c102/sn9c102_core.c
@@ -773,7 +773,8 @@ end_of_frame:
img);
if ((*f)->buf.bytesused == 0)
- do_gettimeofday(&(*f)->buf.timestamp);
+ v4l2_get_timestamp(
+ &(*f)->buf.timestamp);
(*f)->buf.bytesused += img;