]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: vb2: Fix buf_out_validate documentation
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 5 Feb 2019 21:11:15 +0000 (16:11 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 17:35:42 +0000 (12:35 -0500)
The .buf_out_validate callback is mandatory for OUTPUT
queues. Mark it as such in the callback's doc.

Fixes: 28d77c21cb ("media: vb2: add buf_out_validate callback")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/media/videobuf2-core.h

index 4849b865b9085142aa5cf7e4ecf4f8297aca95ab..06142c1469cc4d95b84fed191544ffa110f82192 100644 (file)
@@ -345,7 +345,8 @@ struct vb2_buffer {
  *                     waiting for a new buffer to arrive.
  * @buf_out_validate:  called when the output buffer is prepared or queued
  *                     to a request; drivers can use this to validate
- *                     userspace-provided information; optional.
+ *                     userspace-provided information; this is required only
+ *                     for OUTPUT queues.
  * @buf_init:          called once after allocating a buffer (in MMAP case)
  *                     or after acquiring a new USERPTR buffer; drivers may
  *                     perform additional buffer-related initialization;