]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: uvcvideo: Use ktime_t for timestamps
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 13:19:54 +0000 (08:19 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 4 Jan 2018 11:36:59 +0000 (06:36 -0500)
commit828ee8c719501551d4cdd1ace8425284951dfb82
tree0929fc26590ac9b38d314f2aac4cfed7b5bf8eea
parenta70b8b24e79dc8b4811c3179f8431346e98d1f8c
media: uvcvideo: Use ktime_t for timestamps

uvc_video_get_ts() returns a 'struct timespec', but all its users
really want a nanoseconds variable anyway.

Changing the deprecated ktime_get_ts/ktime_get_real_ts to ktime_get
and ktime_get_real simplifies the code noticeably, while keeping
the resulting numbers unchanged.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h