media: v4l2: abstract timeval handling in v4l2_buffer
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Dec 2019 14:15:00 +0000 (15:15 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 3 Jan 2020 14:43:35 +0000 (15:43 +0100)
commit77cdffcb0bfb87fe3645894335cb8cb94917e6ac
tree59ef93d844f55924b0eb09ae2a2132e3b485e5be
parent71e37d2e4b3b9b5ab143ee52f9ebb43e01068594
media: v4l2: abstract timeval handling in v4l2_buffer

As a preparation for adding 64-bit time_t support in the uapi,
change the drivers to no longer care about the format of the
timestamp field in struct v4l2_buffer.

The v4l2_timeval_to_ns() function is no longer needed in the
kernel after this, but there is userspace code relying on
it to be part of the uapi header.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: replace spaces by tabs]
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c
drivers/media/pci/meye/meye.c
drivers/media/usb/cpia2/cpia2_v4l.c
drivers/media/usb/stkwebcam/stk-webcam.c
drivers/media/usb/usbvision/usbvision-video.c
drivers/media/v4l2-core/videobuf-core.c
include/media/v4l2-common.h
include/trace/events/v4l2.h
include/uapi/linux/videodev2.h