OSDN Git Service

[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)
commit42639f6de69433cd531c79390fd8eccf311ed44e
tree4d9189e1c961f4f8b08730b7f421172ccac441af
parent6cf11ee6300f38b7cfc43af9b7be2afaa5e05869
[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