media: uvcvideo: Fixed ktime_t to ns conversion
authorJasmin Jessich <jasmin@anw.at>
Sun, 14 Jan 2018 10:21:43 +0000 (05:21 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 07:24:29 +0000 (02:24 -0500)
commit43df6ea0c6ae85ae81edda3261d8d257d88a78a2
tree4de2fb41749fdab8ebd09d29b4398f5739412252
parentf14d4988c28e5243e43ba792ee34994951240b0f
media: uvcvideo: Fixed ktime_t to ns conversion

Commit 828ee8c71950 ("media: uvcvideo: Use ktime_t for timestamps")
changed to use ktime_t for timestamps. Older Kernels use a struct for
ktime_t, which requires the conversion function ktime_to_ns to be used on
some places. With this patch it will compile now also for older Kernel
versions.

Signed-off-by: Jasmin Jessich <jasmin@anw.at>
Acked-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