media: v4l2-core: fix several typos
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:29:04 +0000 (14:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 1 Mar 2019 14:44:17 +0000 (09:44 -0500)
Use codespell to fix lots of typos over frontends.

Manually verified to avoid false-positives.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c
drivers/media/v4l2-core/v4l2-ioctl.c
drivers/media/v4l2-core/videobuf-core.c
drivers/media/v4l2-core/videobuf-dma-contig.c
drivers/media/v4l2-core/videobuf-vmalloc.c

index 9bfedd7..2057184 100644 (file)
@@ -46,7 +46,7 @@ static const struct v4l2_fwnode_bus_conv {
        enum v4l2_fwnode_bus_type fwnode_bus_type;
        enum v4l2_mbus_type mbus_type;
        const char *name;
-} busses[] = {
+} buses[] = {
        {
                V4L2_FWNODE_BUS_TYPE_GUESS,
                V4L2_MBUS_UNKNOWN,
@@ -83,9 +83,9 @@ get_v4l2_fwnode_bus_conv_by_fwnode_bus(enum v4l2_fwnode_bus_type type)
 {
        unsigned int i;
 
-       for (i = 0; i < ARRAY_SIZE(busses); i++)
-               if (busses[i].fwnode_bus_type == type)
-                       return &busses[i];
+       for (i = 0; i < ARRAY_SIZE(buses); i++)
+               if (buses[i].fwnode_bus_type == type)
+                       return &buses[i];
 
        return NULL;
 }
@@ -113,9 +113,9 @@ get_v4l2_fwnode_bus_conv_by_mbus(enum v4l2_mbus_type type)
 {
        unsigned int i;
 
-       for (i = 0; i < ARRAY_SIZE(busses); i++)
-               if (busses[i].mbus_type == type)
-                       return &busses[i];
+       for (i = 0; i < ARRAY_SIZE(buses); i++)
+               if (buses[i].mbus_type == type)
+                       return &buses[i];
 
        return NULL;
 }
@@ -809,7 +809,7 @@ error:
  * root node and the value of that property matching with the integer argument
  * of the reference, at the same index.
  *
- * The child fwnode reched at the end of the iteration is then returned to the
+ * The child fwnode reached at the end of the iteration is then returned to the
  * caller.
  *
  * The core reason for this is that you cannot refer to just any node in ACPI.
index 6f70746..f6d6639 100644 (file)
@@ -88,7 +88,7 @@ const char *v4l2_norm_to_name(v4l2_std_id id)
        int i;
 
        /* HACK: ppc32 architecture doesn't have __ucmpdi2 function to handle
-          64 bit comparations. So, on that architecture, with some gcc
+          64 bit comparisons. So, on that architecture, with some gcc
           variants, compilation fails. Currently, the max value is 30bit wide.
         */
        BUG_ON(myid != id);
index ab84905..bf7dfb2 100644 (file)
@@ -214,7 +214,7 @@ int videobuf_queue_is_busy(struct videobuf_queue *q)
                        return 1;
                }
                if (q->bufs[i]->state == VIDEOBUF_ACTIVE) {
-                       dprintk(1, "busy: buffer #%d avtive\n", i);
+                       dprintk(1, "busy: buffer #%d active\n", i);
                        return 1;
                }
        }
index f461325..e1bf50d 100644 (file)
@@ -248,7 +248,7 @@ static int __videobuf_iolock(struct videobuf_queue *q,
 
                /* All handling should be done by __videobuf_mmap_mapper() */
                if (!mem->vaddr) {
-                       dev_err(q->dev, "memory is not alloced/mmapped.\n");
+                       dev_err(q->dev, "memory is not allocated/mmapped.\n");
                        return -EINVAL;
                }
                break;
index 293213a..cb50f19 100644 (file)
@@ -171,7 +171,7 @@ static int __videobuf_iolock(struct videobuf_queue *q,
 
                /* All handling should be done by __videobuf_mmap_mapper() */
                if (!mem->vaddr) {
-                       printk(KERN_ERR "memory is not alloced/mmapped.\n");
+                       printk(KERN_ERR "memory is not allocated/mmapped.\n");
                        return -EINVAL;
                }
                break;