Skip to content

Commit 5be5f41

Browse files
Michael Rodinmchehab
authored andcommitted
media: v4l2-subdev.rst: correct information about v4l2 events
Remove description of non-existing v4l2_subdev.nevents and replace the undefined flag V4L2_SUBDEV_USES_EVENTS by the correct flag V4L2_SUBDEV_FL_HAS_EVENTS, which is already documented in v4l2_subdev.flags Fixes: commit 02adb1c ("[media] v4l: subdev: Events support") Signed-off-by: Michael Rodin <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent cc8c036 commit 5be5f41

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Documentation/driver-api/media/v4l2-subdev.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ The device node handles a subset of the V4L2 API.
319319
events can also be reported by one (or several) V4L2 device nodes.
320320

321321
Sub-device drivers that want to use events need to set the
322-
``V4L2_SUBDEV_USES_EVENTS`` :c:type:`v4l2_subdev`.flags and initialize
323-
:c:type:`v4l2_subdev`.nevents to events queue depth before registering
322+
``V4L2_SUBDEV_FL_HAS_EVENTS`` :c:type:`v4l2_subdev`.flags before registering
324323
the sub-device. After registration events can be queued as usual on the
325324
:c:type:`v4l2_subdev`.devnode device node.
326325

0 commit comments

Comments
 (0)