summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-03-01 11:57:23 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-13 16:40:29 -0300
commit7bbe7813290df9fda0c175b7a703325720594912 (patch)
tree6cb036f67f202db211dee0ed12aba0f1dfb192bb /include/media
parent26a7ed9c18193dc7a3dfba33e3c711822f4bdd29 (diff)
downloadlinux-7bbe7813290df9fda0c175b7a703325720594912.tar.bz2
[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 <hans.verkuil@cisco.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-dev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 76056ab5c5bd..25a3190308fb 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -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 */