]> git.baikalelectronics.ru Git - kernel.git/commit
[media] pvrusb2: fix missing device_caps in querycap
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 19 Jan 2015 09:23:26 +0000 (06:23 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 21 Jan 2015 23:08:03 +0000 (21:08 -0200)
commitf990207f6b05ce236942194b6b26057bd96bb51b
tree4d9189e1c961f4f8b08730b7f421172ccac441af
parentd2705eb5f36f112c67ac4dc41dcb135e78bdd49f
[media] pvrusb2: fix missing device_caps in querycap

The VIDIOC_QUERYCAP function should set device_caps, but this was missing.
In addition, it set the version field as well, but that should be done by
the core, not by the driver.

If a driver doesn't set device_caps the v4l2 core will issue a WARN_ON, so
it's important that this is set correctly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/pvrusb2/pvrusb2-v4l2.c