diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-02-06 03:46:11 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 05:56:40 -0400 |
commit | 6ea3b980f058d9dbc79ba88c652d581fa2d00792 (patch) | |
tree | 89959aeb1d157de2bfd877f3ccb6dc6fae2d7964 /include | |
parent | 256f3162c17595b3fde1c4f18389719e8a2952f5 (diff) |
[media] vb2: rename queued_count to owned_by_drv_count
'queued_count' is a bit vague since it is not clear to which queue it
refers to: the vb2 internal list of buffers or the driver-owned list
of buffers.
Rename to make it explicit.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/media/videobuf2-core.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index b852b39cc6dc..36e3e8e2d457 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h | |||
@@ -361,7 +361,7 @@ struct v4l2_fh; | |||
361 | * @bufs: videobuf buffer structures | 361 | * @bufs: videobuf buffer structures |
362 | * @num_buffers: number of allocated/used buffers | 362 | * @num_buffers: number of allocated/used buffers |
363 | * @queued_list: list of buffers currently queued from userspace | 363 | * @queued_list: list of buffers currently queued from userspace |
364 | * @queued_count: number of buffers owned by the driver | 364 | * @owned_by_drv_count: number of buffers owned by the driver |
365 | * @done_list: list of buffers ready to be dequeued to userspace | 365 | * @done_list: list of buffers ready to be dequeued to userspace |
366 | * @done_lock: lock to protect done_list list | 366 | * @done_lock: lock to protect done_list list |
367 | * @done_wq: waitqueue for processes waiting for buffers ready to be dequeued | 367 | * @done_wq: waitqueue for processes waiting for buffers ready to be dequeued |
@@ -393,7 +393,7 @@ struct vb2_queue { | |||
393 | 393 | ||
394 | struct list_head queued_list; | 394 | struct list_head queued_list; |
395 | 395 | ||
396 | atomic_t queued_count; | 396 | atomic_t owned_by_drv_count; |
397 | struct list_head done_list; | 397 | struct list_head done_list; |
398 | spinlock_t done_lock; | 398 | spinlock_t done_lock; |
399 | wait_queue_head_t done_wq; | 399 | wait_queue_head_t done_wq; |