diff options
Diffstat (limited to 'include/media/v4l2-device.h')
-rw-r--r-- | include/media/v4l2-device.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/v4l2-device.h b/include/media/v4l2-device.h index b16f307d471a..78b11e5a6db7 100644 --- a/include/media/v4l2-device.h +++ b/include/media/v4l2-device.h | |||
@@ -96,6 +96,12 @@ int __must_check v4l2_device_register_subdev(struct v4l2_device *v4l2_dev, | |||
96 | wasn't registered. In that case it will do nothing. */ | 96 | wasn't registered. In that case it will do nothing. */ |
97 | void v4l2_device_unregister_subdev(struct v4l2_subdev *sd); | 97 | void v4l2_device_unregister_subdev(struct v4l2_subdev *sd); |
98 | 98 | ||
99 | /* Register device nodes for all subdev of the v4l2 device that are marked with | ||
100 | * the V4L2_SUBDEV_FL_HAS_DEVNODE flag. | ||
101 | */ | ||
102 | int __must_check | ||
103 | v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev); | ||
104 | |||
99 | /* Iterate over all subdevs. */ | 105 | /* Iterate over all subdevs. */ |
100 | #define v4l2_device_for_each_subdev(sd, v4l2_dev) \ | 106 | #define v4l2_device_for_each_subdev(sd, v4l2_dev) \ |
101 | list_for_each_entry(sd, &(v4l2_dev)->subdevs, list) | 107 | list_for_each_entry(sd, &(v4l2_dev)->subdevs, list) |