]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] uvcvideo: Don't record timespec_sub
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Mon, 3 Apr 2017 11:25:31 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 10 Apr 2017 10:42:12 +0000 (07:42 -0300)
commit52276df0b1ce3a833293f4b57fc3b62d6f540901
tree0ff7c2b6224b4cd6ac3fa6d6eb22feabcfbda50a
parent360a3a90c6261fe24a959ff38f8f6c3a8468f23c
[media] uvcvideo: Don't record timespec_sub

The statistics function subtracts two timespecs manually. A helper is
provided by the kernel to do this.

Replace the implementation, using the helper.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
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