OSDN Git Service

media: uvcvideo: Report V4L2 device caps through the video_device structure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 4 Dec 2017 23:06:01 +0000 (18:06 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 4 Jan 2018 11:37:58 +0000 (06:37 -0500)
commit94c53e26dc74744cc4f9a8ddc593b7aef96ba764
tree9074912c8b48381b67c65709aaff1a5307946e6e
parent31a96f4c872e8fb953c853630f69d5de6ec961c9
media: uvcvideo: Report V4L2 device caps through the video_device structure

The V4L2 core populates the struct v4l2_capability device_caps field
from the same field in video_device. There's no need to handle that
manually in the driver.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_v4l2.c