]> git.baikalelectronics.ru Git - kernel.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)
commit9cd8afce258f5119b74bc2ed7b269a8cef619f57
tree0929fc26590ac9b38d314f2aac4cfed7b5bf8eea
parenta9e6e44a88944e10f922d7631e0c9baa51109ae5
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