Skip to content

Commit

Permalink
media: vb2: Fix buf_out_validate documentation
Browse files Browse the repository at this point in the history
The .buf_out_validate callback is mandatory for OUTPUT
queues. Mark it as such in the callback's doc.

Fixes: 28d77c2 ("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>
  • Loading branch information
ezequielgarcia authored and mchehab committed Feb 7, 2019
1 parent 9bcb830 commit c2d88e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/media/videobuf2-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2d88e7

Please sign in to comment.