Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295028
b: refs/heads/master
c: 072e660
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 8, 2012
1 parent d2f1266 commit 52a7176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99025937bcd2291e6e50b4e54fe1f6d48d4c2b7c
refs/heads/master: 072e660257ee26e4f4defd836b1e1fa23d68de32
6 changes: 4 additions & 2 deletions trunk/drivers/media/video/v4l2-ctrls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ EXPORT_SYMBOL(v4l2_ctrl_add_ctrl);
int v4l2_ctrl_add_handler(struct v4l2_ctrl_handler *hdl,
struct v4l2_ctrl_handler *add)
{
struct v4l2_ctrl *ctrl;
struct v4l2_ctrl_ref *ref;
int ret = 0;

/* Do nothing if either handler is NULL or if they are the same */
Expand All @@ -1526,7 +1526,9 @@ int v4l2_ctrl_add_handler(struct v4l2_ctrl_handler *hdl,
if (hdl->error)
return hdl->error;
mutex_lock(&add->lock);
list_for_each_entry(ctrl, &add->ctrls, node) {
list_for_each_entry(ref, &add->ctrl_refs, node) {
struct v4l2_ctrl *ctrl = ref->ctrl;

/* Skip handler-private controls. */
if (ctrl->is_private)
continue;
Expand Down

0 comments on commit 52a7176

Please sign in to comment.