[media] v4l2: add device_caps to struct video_device

Instead of letting drivers fill in device_caps at querycap time,
let them fill it in when the video device is registered.

This has the advantage that in the future the v4l2 core can access
the video device's capabilities and take decisions based on that.

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Hans Verkuil 2016-03-01 11:57:23 -03:00 • committed by Mauro Carvalho Chehab
commit 7bbe781329
2 changed files with 6 additions and 0 deletions

View file

@ -92,6 +92,9 @@ struct video_device
/* device ops */
const struct v4l2_file_operations *fops;
/* device capabilities as used in v4l2_capabilities */
u32 device_caps;
/* sysfs */
struct device dev; /* v4l device */
struct cdev *cdev; /* character device */