Skip to content

Commit 35d4ac0

Browse files
bunder0day robot
authored andcommitted
vb2: Fix queue_setup() callback description
Correct meaning of the last sensence by swapping it with previous. Fix two small typos. Signed-off-by: Anton Leontiev <scileont@gmail.com>
1 parent 8bc4793 commit 35d4ac0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/media/videobuf2-core.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,16 @@ struct vb2_buffer {
305305
* buffer in \*num_planes, the size of each plane should be
306306
* set in the sizes\[\] array and optional per-plane
307307
* allocator specific device in the alloc_devs\[\] array.
308-
* When called from VIDIOC_REQBUFS,() \*num_planes == 0,
308+
* When called from VIDIOC_REQBUFS(), \*num_planes == 0,
309309
* the driver has to use the currently configured format to
310310
* determine the plane sizes and \*num_buffers is the total
311311
* number of buffers that are being allocated. When called
312-
* from VIDIOC_CREATE_BUFS,() \*num_planes != 0 and it
312+
* from VIDIOC_CREATE_BUFS(), \*num_planes != 0 and it
313313
* describes the requested number of planes and sizes\[\]
314-
* contains the requested plane sizes. If either
315-
* \*num_planes or the requested sizes are invalid callback
316-
* must return %-EINVAL. In this case \*num_buffers are
317-
* being allocated additionally to q->num_buffers.
314+
* contains the requested plane sizes. In this case
315+
* \*num_buffers are being allocated additionally to
316+
* q->num_buffers. If either \*num_planes or the requested
317+
* sizes are invalid callback must return %-EINVAL.
318318
* @wait_prepare: release any locks taken while calling vb2 functions;
319319
* it is called before an ioctl needs to wait for a new
320320
* buffer to arrive; required to avoid a deadlock in

0 commit comments

Comments
 (0)