]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/uvc/uvc_ctrl.c
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[~andy/linux] / drivers / media / video / uvc / uvc_ctrl.c
index 2c8954ec685950bc0552f403dea77ce046fec7b2..10c2364f3e8a56624babb71ac2f1d59f2c4c37f1 100644 (file)
@@ -1664,8 +1664,8 @@ int uvc_ctrl_add_mapping(struct uvc_video_chain *chain,
                return -EINVAL;
        }
 
-       /* Search for the matching (GUID/CS) control in the given device */
-       list_for_each_entry(entity, &dev->entities, list) {
+       /* Search for the matching (GUID/CS) control on the current chain */
+       list_for_each_entry(entity, &chain->entities, chain) {
                unsigned int i;
 
                if (UVC_ENTITY_TYPE(entity) != UVC_VC_EXTENSION_UNIT ||