[media] uvcvideo: Drop unused ctrl member from struct uvc_control_mapping
authorHans de Goede <hdegoede@redhat.com>
Sun, 8 Apr 2012 15:59:54 +0000 (12:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 7 May 2012 19:41:57 +0000 (16:41 -0300)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c
drivers/media/video/uvc/uvcvideo.h

index 03212c7..28363b7 100644 (file)
@@ -1880,7 +1880,6 @@ static int __uvc_ctrl_add_mapping(struct uvc_device *dev,
        if (map->set == NULL)
                map->set = uvc_set_le_value;
 
-       map->ctrl = &ctrl->info;
        list_add_tail(&map->list, &ctrl->info.mappings);
        uvc_trace(UVC_TRACE_CONTROL,
                "Adding mapping '%s' to control %pUl/%u.\n",
index 777bb75..7c3d082 100644 (file)
@@ -157,8 +157,6 @@ struct uvc_control_mapping {
        struct list_head list;
        struct list_head ev_subs;
 
-       struct uvc_control_info *ctrl;
-
        __u32 id;
        __u8 name[32];
        __u8 entity[16];