diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-01-21 08:32:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-07 12:19:05 -0500 |
commit | 459d2a5d1e696b6fb029df1be041380daff94032 (patch) | |
tree | a54bce0351b2092351d963cae36eae46d7b9de8f /drivers/media/usb/usbvision/usbvision.h | |
parent | media: stkwebcam: use u64 for the timestamp internally (diff) | |
download | linux-dev-459d2a5d1e696b6fb029df1be041380daff94032.tar.xz linux-dev-459d2a5d1e696b6fb029df1be041380daff94032.zip |
media: usbvision: use u64 for the timestamp internally
Just like vb2 does, use u64 internally to store the timestamps
of the buffers. Only convert to timeval when interfacing with
userspace.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/usbvision/usbvision.h')
-rw-r--r-- | drivers/media/usb/usbvision/usbvision.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/usbvision/usbvision.h b/drivers/media/usb/usbvision/usbvision.h index 017e7baf5747..d55088b4fd63 100644 --- a/drivers/media/usb/usbvision/usbvision.h +++ b/drivers/media/usb/usbvision/usbvision.h @@ -316,7 +316,7 @@ struct usbvision_frame { long bytes_read; /* amount of scanlength that has been read from data */ struct usbvision_v4l2_format_st v4l2_format; /* format the user needs*/ int v4l2_linesize; /* bytes for one videoline*/ - struct timeval timestamp; + u64 ts; int sequence; /* How many video frames we send to user */ }; |