summaryrefslogtreecommitdiff
path: root/drivers/media/usb/cpia2/cpia2.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-21 16:32:25 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-07 20:12:43 +0300
commit597f8e9c13644e4fcf4c1d01c2317c78b2e2df92 (patch)
tree65bc70b1d4ea12dea892f0a0950564cc9a93a093 /drivers/media/usb/cpia2/cpia2.h
parentcb7130ea67c4319bbf2d810f245ee6f89bbf6ae7 (diff)
downloadlinux-597f8e9c13644e4fcf4c1d01c2317c78b2e2df92.tar.xz
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.h')
-rw-r--r--drivers/media/usb/cpia2/cpia2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/cpia2/cpia2.h b/drivers/media/usb/cpia2/cpia2.h
index ab238ac8bfc0..d0a464882510 100644
--- a/drivers/media/usb/cpia2/cpia2.h
+++ b/drivers/media/usb/cpia2/cpia2.h
@@ -350,7 +350,7 @@ struct cpia2_sbuf {
};
struct framebuf {
- struct timeval timestamp;
+ u64 ts;
unsigned long seq;
int num;
int length;