summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2025-08-10 04:29:58 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-08-13 08:33:32 +0200
commitbbe4debfaa6a16f11064d5c40ef6d468dad4398d (patch)
treea8947a07c90070ca4c3b8f850199a6709d02e75b /include/media
parent1b847fa1bc9509150433aa16a1a1d3bac8a2bd38 (diff)
media: v4l2-fh: Move piece of documentation to correct function
The paragraph in the v4l2_fh_del() documentation that indicates the function sets filp->private_data was added in the wrong place. It is meant for v4l2_fh_open(). Move it to where it belongs. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-fh.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/v4l2-fh.h b/include/media/v4l2-fh.h
index 823fa8ebeb8f..14e7136e693f 100644
--- a/include/media/v4l2-fh.h
+++ b/include/media/v4l2-fh.h
@@ -101,6 +101,9 @@ void v4l2_fh_add(struct v4l2_fh *fh);
*
* It allocates a v4l2_fh and inits and adds it to the &struct video_device
* associated with the file pointer.
+ *
+ * On error filp->private_data will be %NULL, otherwise it will point to
+ * the &struct v4l2_fh.
*/
int v4l2_fh_open(struct file *filp);
@@ -109,9 +112,6 @@ int v4l2_fh_open(struct file *filp);
*
* @fh: pointer to &struct v4l2_fh
*
- * On error filp->private_data will be %NULL, otherwise it will point to
- * the &struct v4l2_fh.
- *
* .. note::
* Must be called in v4l2_file_operations->release\(\) handler if the driver
* uses &struct v4l2_fh.