diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-01-21 08:32:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-07 12:12:43 -0500 |
commit | 597f8e9c13644e4fcf4c1d01c2317c78b2e2df92 (patch) | |
tree | 65bc70b1d4ea12dea892f0a0950564cc9a93a093 /drivers/media/usb/cpia2/cpia2_usb.c | |
parent | cb7130ea67c4319bbf2d810f245ee6f89bbf6ae7 (diff) | |
download | linux-stable-597f8e9c13644e4fcf4c1d01c2317c78b2e2df92.tar.gz linux-stable-597f8e9c13644e4fcf4c1d01c2317c78b2e2df92.tar.bz2 linux-stable-597f8e9c13644e4fcf4c1d01c2317c78b2e2df92.zip |
media: cpia2: 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/cpia2/cpia2_usb.c')
-rw-r--r-- | drivers/media/usb/cpia2/cpia2_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/cpia2/cpia2_usb.c b/drivers/media/usb/cpia2/cpia2_usb.c index a771e0a52610..e5d8dee38fe4 100644 --- a/drivers/media/usb/cpia2/cpia2_usb.c +++ b/drivers/media/usb/cpia2/cpia2_usb.c @@ -324,7 +324,7 @@ static void cpia2_usb_complete(struct urb *urb) continue; } DBG("Start of frame pattern found\n"); - v4l2_get_timestamp(&cam->workbuff->timestamp); + cam->workbuff->ts = ktime_get_ns(); cam->workbuff->seq = cam->frame_count++; cam->workbuff->data[0] = 0xFF; cam->workbuff->data[1] = 0xD8; |