]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
[media] use v4l2_get_timestamp where possible
authorArnd Bergmann <arnd@arndb.de>
Thu, 17 Sep 2015 21:19:37 +0000 (18:19 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 1 Oct 2015 11:29:23 +0000 (08:29 -0300)
commit5ba0e2c3ad4c049b19f6cad7ec62e59424a55183
treeda731151900e30bac077a5ef1872b32a62d1a7e2
parent2ef3b6fe9e6d7b22ca9f81a58d5ff089f7b4ef91
[media] use v4l2_get_timestamp where possible

This is a preparation for a change to the type of v4l2 timestamps.
v4l2_get_timestamp() is a helper function that reads the monotonic
time and stores it into a 'struct timeval'. Multiple drivers implement
the same thing themselves for historic reasons.

Changing them all to use v4l2_get_timestamp() is more consistent
and reduces the amount of code duplication, and most importantly
simplifies the following changes.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[hans.verkuil@cisco.com: dropped the v4l2-dev.c patch that didn't belong here]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/bt8xx/bttv-driver.c
drivers/media/pci/cx18/cx18-mailbox.c
drivers/media/platform/exynos4-is/fimc-lite.c
drivers/media/platform/omap3isp/ispstat.c
drivers/media/platform/omap3isp/ispstat.h
drivers/media/platform/s3c-camif/camif-capture.c
drivers/media/usb/gspca/gspca.c
drivers/staging/media/omap4iss/iss_video.c