media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 24 Jul 2019 04:56:12 +0000 (01:56 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Oct 2019 19:34:34 +0000 (16:34 -0300)
It is likely that it should be UVC_METADATA_BUF_SIZE instead.
Fix it and use it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_metadata.c
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvcvideo.h

index 99bb71b47117ec5921f02a17d2dcf74cf4b19e03..b6279ad7ac8452087018a44143fb6c184ae0ca3f 100644 (file)
@@ -51,7 +51,7 @@ static int uvc_meta_v4l2_get_format(struct file *file, void *fh,
        memset(fmt, 0, sizeof(*fmt));
 
        fmt->dataformat = stream->meta.format;
-       fmt->buffersize = UVC_METATADA_BUF_SIZE;
+       fmt->buffersize = UVC_METADATA_BUF_SIZE;
 
        return 0;
 }
@@ -72,7 +72,7 @@ static int uvc_meta_v4l2_try_format(struct file *file, void *fh,
 
        fmt->dataformat = fmeta == dev->info->meta_format
                        ? fmeta : V4L2_META_FMT_UVC;
-       fmt->buffersize = UVC_METATADA_BUF_SIZE;
+       fmt->buffersize = UVC_METADATA_BUF_SIZE;
 
        return 0;
 }
index da72577c29986fe86955567795f9ed395fb6782e..cd60c6c1749eacf9c9d407d042a1ff3bcf5dd995 100644 (file)
@@ -79,7 +79,7 @@ static int uvc_queue_setup(struct vb2_queue *vq,
 
        switch (vq->type) {
        case V4L2_BUF_TYPE_META_CAPTURE:
-               size = UVC_METATADA_BUF_SIZE;
+               size = UVC_METADATA_BUF_SIZE;
                break;
 
        default:
index c7c1baa90dea8522a662a1ab05167e0646788d80..f773dc5d802cd672ca3fc49c6352476ee0e9bbac 100644 (file)
@@ -491,7 +491,7 @@ struct uvc_stats_stream {
        unsigned int max_sof;           /* Maximum STC.SOF value */
 };
 
-#define UVC_METATADA_BUF_SIZE 1024
+#define UVC_METADATA_BUF_SIZE 1024
 
 /**
  * struct uvc_copy_op: Context structure to schedule asynchronous memcpy