summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/meye/meye.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-01-21 08:32:24 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-07 12:11:23 -0500
commitcb7130ea67c4319bbf2d810f245ee6f89bbf6ae7 (patch)
tree17202cdf78537d203eb9a5dc43e62c6adada44c5 /drivers/media/pci/meye/meye.h
parent15a40b27beb0a85d7f11d747bfc587dbeb69a96c (diff)
downloadlinux-cb7130ea67c4319bbf2d810f245ee6f89bbf6ae7.tar.bz2
media: meye: 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/pci/meye/meye.h')
-rw-r--r--drivers/media/pci/meye/meye.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/meye/meye.h b/drivers/media/pci/meye/meye.h
index c4a8a5fe040c..0af868eb6210 100644
--- a/drivers/media/pci/meye/meye.h
+++ b/drivers/media/pci/meye/meye.h
@@ -277,7 +277,7 @@
struct meye_grab_buffer {
int state; /* state of buffer */
unsigned long size; /* size of jpg frame */
- struct timeval timestamp; /* timestamp */
+ u64 ts; /* timestamp */
unsigned long sequence; /* sequence number */
};