Skip to contentSkip to conversation

media: vb2: Fix buf_out_validate documentation

PATCH New Ezequiel Garcia 1 participant 1 message Feb 5, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: vb2: Fix buf_out_validate documentation

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")
---
 include/media/videobuf2-core.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/media/videobuf2-core.h +2 -1
index 4849b865b908..06142c1469cc 100644
@@ -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;
Signature · 1 line
2.20.1