]> Pileus Git - ~andy/linux/commitdiff
[media] uvcvideo: Constify the uvc_entity_match_guid arguments
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 17 Sep 2010 08:24:13 +0000 (05:24 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:18:17 +0000 (01:18 -0200)
They're not modified by the function, make them const.

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

index bce29fdde52d2399a512e42e6006d5b4b2059130..d8dc1e191760e91412a88665c289a385ae796025 100644 (file)
@@ -727,7 +727,8 @@ static const __u8 uvc_camera_guid[16] = UVC_GUID_UVC_CAMERA;
 static const __u8 uvc_media_transport_input_guid[16] =
        UVC_GUID_UVC_MEDIA_TRANSPORT_INPUT;
 
-static int uvc_entity_match_guid(struct uvc_entity *entity, __u8 guid[16])
+static int uvc_entity_match_guid(const struct uvc_entity *entity,
+       const __u8 guid[16])
 {
        switch (UVC_ENTITY_TYPE(entity)) {
        case UVC_ITT_CAMERA: