]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
media: i2c: fix several typos
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:28:58 +0000 (14:28 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 1 Mar 2019 14:29:58 +0000 (09:29 -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>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
28 files changed:
drivers/media/i2c/adv7175.c
drivers/media/i2c/adv7842.c
drivers/media/i2c/bt819.c
drivers/media/i2c/cx25840/cx25840-core.h
drivers/media/i2c/cx25840/cx25840-ir.c
drivers/media/i2c/et8ek8/et8ek8_mode.c
drivers/media/i2c/imx214.c
drivers/media/i2c/imx274.c
drivers/media/i2c/lm3560.c
drivers/media/i2c/lm3646.c
drivers/media/i2c/m5mols/m5mols.h
drivers/media/i2c/m5mols/m5mols_core.c
drivers/media/i2c/msp3400-driver.c
drivers/media/i2c/mt9t112.c
drivers/media/i2c/ov5640.c
drivers/media/i2c/ov6650.c
drivers/media/i2c/ov7740.c
drivers/media/i2c/ov9650.c
drivers/media/i2c/s5c73m3/s5c73m3-core.c
drivers/media/i2c/s5k6aa.c
drivers/media/i2c/saa7115.c
drivers/media/i2c/saa717x.c
drivers/media/i2c/tda1997x_regs.h
drivers/media/i2c/tda9840.c
drivers/media/i2c/tea6415c.c
drivers/media/i2c/tea6420.c
drivers/media/i2c/tvaudio.c
drivers/media/i2c/tvp514x.c

index e31e8d909bb9958c765077369370376c96935486..419b98117133d1698d16716d4266432fc5ef2ce2 100644 (file)
@@ -219,7 +219,7 @@ static int adv7175_s_std_output(struct v4l2_subdev *sd, v4l2_std_id std)
                 * SECAM->PAL (typically it does not work
                 * due to genlock: when decoder is in SECAM
                 * and encoder in in PAL the subcarrier can
-                * not be syncronized with horizontal
+                * not be synchronized with horizontal
                 * quency) */
                adv7175_write_block(sd, init_pal, sizeof(init_pal));
                if (encoder->input == 0)
index 989259488e3ddb9f620fdcac125bcc375d018911..11ab2df02dc70c519148d1a71bec4d5050c0e47b 100644 (file)
@@ -3102,11 +3102,11 @@ static int adv7842_ddr_ram_test(struct v4l2_subdev *sd)
 
        io_write(sd, 0x00, 0x01);  /* Program SDP 4x1 */
        io_write(sd, 0x01, 0x00);  /* Program SDP mode */
-       afe_write(sd, 0x80, 0x92); /* SDP Recommeneded Write */
-       afe_write(sd, 0x9B, 0x01); /* SDP Recommeneded Write ADV7844ES1 */
-       afe_write(sd, 0x9C, 0x60); /* SDP Recommeneded Write ADV7844ES1 */
-       afe_write(sd, 0x9E, 0x02); /* SDP Recommeneded Write ADV7844ES1 */
-       afe_write(sd, 0xA0, 0x0B); /* SDP Recommeneded Write ADV7844ES1 */
+       afe_write(sd, 0x80, 0x92); /* SDP Recommended Write */
+       afe_write(sd, 0x9B, 0x01); /* SDP Recommended Write ADV7844ES1 */
+       afe_write(sd, 0x9C, 0x60); /* SDP Recommended Write ADV7844ES1 */
+       afe_write(sd, 0x9E, 0x02); /* SDP Recommended Write ADV7844ES1 */
+       afe_write(sd, 0xA0, 0x0B); /* SDP Recommended Write ADV7844ES1 */
        afe_write(sd, 0xC3, 0x02); /* Memory BIST Initialisation */
        io_write(sd, 0x0C, 0x40);  /* Power up ADV7844 */
        io_write(sd, 0x15, 0xBA);  /* Enable outputs */
index 472e37637c8db54310ef7ca4053739887a91a1b6..e6d3fe7790bc30313f3cc2ed3bdcdd016607b481 100644 (file)
@@ -164,12 +164,12 @@ static int bt819_init(struct v4l2_subdev *sd)
                0x0e, 0xb4,     /* 0x0e Chroma Gain (V) msb */
                0x0f, 0x00,     /* 0x0f Hue control */
                0x12, 0x04,     /* 0x12 Output Format */
-               0x13, 0x20,     /* 0x13 Vertial Scaling msb 0x00
+               0x13, 0x20,     /* 0x13 Vertical Scaling msb 0x00
                                           chroma comb OFF, line drop scaling, interlace scaling
                                           BUG? Why does turning the chroma comb on fuck up color?
                                           Bug in the bt819 stepping on my board?
                                        */
-               0x14, 0x00,     /* 0x14 Vertial Scaling lsb */
+               0x14, 0x00,     /* 0x14 Vertical Scaling lsb */
                0x16, 0x07,     /* 0x16 Video Timing Polarity
                                           ACTIVE=active low
                                           FIELD: high=odd,
index 9efefa15d09048bf106af1dfaf522db2ba12148e..e3ff1d7ec7707c22c988fad7d987874b167d8020 100644 (file)
@@ -66,7 +66,7 @@ enum cx25840_media_pads {
  * @is_initialized:    whether we have already loaded firmware into the chip
  *                     and initialized it
  * @vbi_regs_offset:   offset of vbi regs
- * @fw_wait:           wait queue to wake an initalization function up when
+ * @fw_wait:           wait queue to wake an initialization function up when
  *                     firmware loading (on a separate workqueue) finishes
  * @fw_work:           a work that actually loads the firmware on a separate
  *                     workqueue
index 69cdc09981af669de3cd921bd08a2b85bdaecdf1..a266118cd7cadfe6d636b3b6e7a51398f02faafc 100644 (file)
@@ -549,7 +549,7 @@ int cx25840_ir_irq_handler(struct v4l2_subdev *sd, u32 status, bool *handled)
        ror = stats & STATS_ROR; /* Rx FIFO Over Run */
 
        tse = irqen & IRQEN_TSE; /* Tx FIFO Service Request IRQ Enable */
-       rse = irqen & IRQEN_RSE; /* Rx FIFO Service Reuqest IRQ Enable */
+       rse = irqen & IRQEN_RSE; /* Rx FIFO Service Request IRQ Enable */
        rte = irqen & IRQEN_RTE; /* Rx Pulse Width Timer Time Out IRQ Enable */
        roe = irqen & IRQEN_ROE; /* Rx FIFO Over Run IRQ Enable */
 
@@ -638,7 +638,7 @@ int cx25840_ir_irq_handler(struct v4l2_subdev *sd, u32 status, bool *handled)
                events |= V4L2_SUBDEV_IR_RX_END_OF_RX_DETECTED;
        }
        if (v) {
-               /* Clear STATS_ROR & STATS_RTO as needed by reseting hardware */
+               /* Clear STATS_ROR & STATS_RTO as needed by resetting hardware */
                cx25840_write4(c, CX25840_IR_CNTRL_REG, cntrl & ~v);
                cx25840_write4(c, CX25840_IR_CNTRL_REG, cntrl);
                *handled = true;
index a79882a83885b2c4201761e63b32fd77c100686e..f503303cb8bcfd852b84c0f9ee21d00d24acfd68 100644 (file)
@@ -79,7 +79,7 @@ static struct et8ek8_reglist mode1_poweron_mode2_16vga_2592x1968_12_07fps = {
                { ET8EK8_REG_8BIT, 0x1258, 0x00 },
                /* From parallel out to serial out */
                { ET8EK8_REG_8BIT, 0x125D, 0x88 },
-               /* From w/ embeded data to w/o embeded data */
+               /* From w/ embedded data to w/o embedded data */
                { ET8EK8_REG_8BIT, 0x125E, 0xC0 },
                /* CCP2 out is from STOP to ACTIVE */
                { ET8EK8_REG_8BIT, 0x1263, 0x98 },
index ec3d1b855f623a0f4e767b845106b11a4cedd787..9857e151db467bf8785de3e61844a438d2773ed2 100644 (file)
@@ -377,7 +377,7 @@ static const struct reg_8 mode_table_common[] = {
        /* Moire reduction */
        {0x6957, 0x01},
 
-       /* image enhancment */
+       /* image enhancement */
        {0x6987, 0x17},
        {0x698A, 0x03},
        {0x698B, 0x03},
index c2ac2fd1b96b439fd2566cf7470e00d486ac24d3..f3ff1af209f9885a609c56fe5c6ba56baa211f0f 100644 (file)
@@ -405,12 +405,12 @@ static const struct reg_8 imx274_start_2[] = {
  */
 static const struct reg_8 imx274_start_3[] = {
        {0x30F4, 0x00},
-       {0x3018, 0xA2}, /* XHS VHS OUTUPT */
+       {0x3018, 0xA2}, /* XHS VHS OUTPUT */
        {IMX274_TABLE_END, 0x00}
 };
 
 /*
- * imx274 register configuration for stoping stream
+ * imx274 register configuration for stopping stream
  */
 static const struct reg_8 imx274_stop[] = {
        {IMX274_STANDBY_REG, 0x01},
index f122f03bd6b79adeb6efbeb88656d785f1db29d1..70c3294c21d37ffe247120ee20e33b83ef538dc8 100644 (file)
@@ -55,7 +55,7 @@ enum led_enable {
  * @regmap: reg. map for i2c
  * @lock: muxtex for serial access.
  * @led_mode: V4L2 LED mode
- * @ctrls_led: V4L2 contols
+ * @ctrls_led: V4L2 controls
  * @subdev_led: V4L2 subdev
  */
 struct lm3560_flash {
index 12ef2653987b8c37a22338a0003d95828d4fa1e5..73fbe3c37fc9409f23bf84361ed6becc3132ca65 100644 (file)
@@ -62,7 +62,7 @@ enum led_mode {
  * @regmap: reg. map for i2c
  * @lock: muxtex for serial access.
  * @led_mode: V4L2 LED mode
- * @ctrls_led: V4L2 contols
+ * @ctrls_led: V4L2 controls
  * @subdev_led: V4L2 subdev
  * @mode_reg : mode register value
  */
index 90a6c520f115587f96d5e0174c01dd55480bd768..aef5b4f8904ed770457403d9f745b75895400674 100644 (file)
@@ -253,7 +253,7 @@ struct m5mols_info {
  *
  * The I2C read operation of the M-5MOLS requires 2 messages. The first
  * message sends the information about the command, command category, and total
- * message size. The second message is used to retrieve the data specifed in
+ * message size. The second message is used to retrieve the data specified in
  * the first message
  *
  *   1st message                                2nd message
index b8b2bf4cbfb253f4a1bd1d131cadcca325b55090..454a336be336cb526c7a7195d8091cfcb574212a 100644 (file)
@@ -291,7 +291,7 @@ int m5mols_write(struct v4l2_subdev *sd, u32 reg, u32 val)
  * @reg: the I2C_REG() address of an 8-bit status register to check
  * @value: expected status register value
  * @mask: bit mask for the read status register value
- * @timeout: timeout in miliseconds, or -1 for default timeout
+ * @timeout: timeout in milliseconds, or -1 for default timeout
  *
  * The @reg register value is ORed with @mask before comparing with @value.
  *
index c63be01059b24a28db26d1cfb3d0752701757019..522fb1d561e78aa5a3f2693f7ac9242ac596bb76 100644 (file)
@@ -11,7 +11,7 @@
  *
  *  FM-Mono
  *      should work. The stereo modes are backward compatible to FM-mono,
- *      therefore FM-Mono should be allways available.
+ *      therefore FM-Mono should be always available.
  *
  *  FM-Stereo (B/G, used in germany)
  *      should work, with autodetect
index ef353a244e33ff2802d4c90ddda963ed512f25ff..ae3c336eadf5c1242039f5d1f2600a6e40ff82cc 100644 (file)
@@ -541,7 +541,7 @@ static int mt9t112_init_setting(const struct i2c_client *client)
        mt9t112_mcu_write(ret, client, VAR(18, 109), 0x0AF0);
 
        /*
-        * Flicker Dectection registers.
+        * Flicker Detection registers.
         * This section should be replaced whenever new timing file is
         * generated. All the following registers need to be replaced.
         * Following registers are generated from Register Wizard but user can
index 5278c8723fdd5db1459a8f9405f155cdd1052b62..82d4ce93312cfdd28cf4ce6dfb02bc07a0b76fc3 100644 (file)
@@ -721,7 +721,7 @@ static int ov5640_mod_reg(struct ov5640_dev *sensor, u16 reg,
 
 /*
  * After trying the various combinations, reading various
- * documentations spreaded around the net, and from the various
+ * documentations spread around the net, and from the various
  * feedback, the clock tree is probably as follows:
  *
  *   +--------------+
index 5d1b218bb7f0832804b334f0061e92ee91f1854d..c33fd584cb449fdd8276fa151a70e249cbd6f090 100644 (file)
@@ -15,7 +15,7 @@
  * Copyright (C) 2008 Magnus Damm
  * Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
  *
- * Hardware specific bits initialy based on former work by Matt Callow
+ * Hardware specific bits initially based on former work by Matt Callow
  * drivers/media/video/omap/sensor_ov6650.c
  * Copyright (C) 2006 Matt Callow
  *
@@ -759,7 +759,7 @@ static int ov6650_s_frame_interval(struct v4l2_subdev *sd,
 
        /*
         * Keep result to be used as tpf limit
-        * for subseqent clock divider calculations
+        * for subsequent clock divider calculations
         */
        priv->tpf.numerator = div;
        priv->tpf.denominator = FRAME_RATE_MAX;
index 8835b831cdc09cee920bec42bb7e801126c69b09..dfece91ce96be4f178dab3bdadbf334bb0b410fe 100644 (file)
@@ -20,7 +20,7 @@
 #define REG_BGAIN      0x01    /* blue gain */
 #define REG_RGAIN      0x02    /* red gain */
 #define REG_GGAIN      0x03    /* green gain */
-#define REG_REG04      0x04    /* analog setting, dont change*/
+#define REG_REG04      0x04    /* analog setting, don't change*/
 #define REG_BAVG       0x05    /* b channel average */
 #define REG_GAVG       0x06    /* g channel average */
 #define REG_RAVG       0x07    /* r channel average */
index f0587c0c0a7246547a5eb104c73df35dd21dff3b..eefd57ec2a73fb341223bfa122abecdb5d682e2a 100644 (file)
@@ -45,8 +45,8 @@ MODULE_PARM_DESC(debug, "Debug level (0-2)");
  * OV9650/OV9652 register definitions
  */
 #define REG_GAIN               0x00    /* Gain control, AGC[7:0] */
-#define REG_BLUE               0x01    /* AWB - Blue chanel gain */
-#define REG_RED                        0x02    /* AWB - Red chanel gain */
+#define REG_BLUE               0x01    /* AWB - Blue channel gain */
+#define REG_RED                        0x02    /* AWB - Red channel gain */
 #define REG_VREF               0x03    /* [7:6] - AGC[9:8], [5:3]/[2:0] */
 #define  VREF_GAIN_MASK                0xc0    /* - VREF end/start low 3 bits */
 #define REG_COM1               0x04
index c461847ddae81d2b908576f57730b1a44ff9b090..b52fe250f75f05479eed19d2185c6a8651961270 100644 (file)
@@ -1431,7 +1431,7 @@ err:
        for (++i; i < S5C73M3_MAX_SUPPLIES; i++) {
                int r = regulator_enable(state->supplies[i].consumer);
                if (r < 0)
-                       v4l2_err(&state->oif_sd, "Failed to reenable %s: %d\n",
+                       v4l2_err(&state->oif_sd, "Failed to re-enable %s: %d\n",
                                 state->supplies[i].supply, r);
        }
 
index ab26f549d716de3a930a9d7db82f4ac3a715db3c..f8630c4c2ef0ea5c2af74dcb7ed9fc759e8c32a4 100644 (file)
@@ -729,7 +729,7 @@ static int s5k6aa_new_config_sync(struct i2c_client *client, int timeout,
  * @s5k6aa: pointer to &struct s5k6aa describing the device
  * @preset: s5kaa preset to be applied
  *
- * Configure output resolution and color fromat, pixel clock
+ * Configure output resolution and color format, pixel clock
  * frequency range, device frame rate type and frame period range.
  */
 static int s5k6aa_set_prev_config(struct s5k6aa *s5k6aa,
index 6bc278aa31fce4a9b98f66d8213629517e25bb42..88dc6baac6391bf4bb686eaacfc4122f8834292d 100644 (file)
@@ -1766,7 +1766,7 @@ static int saa711x_detect_chip(struct i2c_client *client,
                 * exists. However, tests on a device labeled as:
                 * "GM7113C 1145" returned "10" on all 16 chip
                 * version (reg 0x00) reads. So, we need to also
-                * accept at least verion 0. For now, let's just
+                * accept at least version 0. For now, let's just
                 * assume that a device that returns "0000" for
                 * the lower nibble is a gm7113c.
                 */
index 668c39cc29e8e8a68d8c384b02b81a10917d67c0..86b8b65ea68308098028738a0ae08f5e852aa08e 100644 (file)
@@ -844,7 +844,7 @@ static void set_h_prescale(struct v4l2_subdev *sd,
        if (i == count)
                return;
 
-       /* horizonal prescaling */
+       /* horizontal prescaling */
        saa717x_write(sd, 0x60 + task_shift, vals[i].xpsc);
        /* accumulation length */
        saa717x_write(sd, 0x61 + task_shift, vals[i].xacl);
index f55dfc423a86a157000a5507d7c6d84e347683fe..ecf87534613b90b6b4a7627827da1c616cb83161 100644 (file)
 #define RESET_AUDIO            BIT(0)  /* Reset Audio FIFO control */
 
 /* HDCP_BCAPS bits */
-#define HDCP_HDMI              BIT(7)  /* HDCP suports HDMI (vs DVI only) */
+#define HDCP_HDMI              BIT(7)  /* HDCP supports HDMI (vs DVI only) */
 #define HDCP_REPEATER          BIT(6)  /* HDCP supports repeater function */
 #define HDCP_READY             BIT(5)  /* set by repeater function */
 #define HDCP_FAST              BIT(4)  /* Up to 400kHz */
index 0dd6ff3e6201a3037d128c9f1d159a278af5ea81..6ba53f3a6dd21776248c31a3e71c1c6c6c7e4214 100644 (file)
@@ -7,7 +7,7 @@
     The tda9840 is a stereo/dual sound processor with digital
     identification. It can be found at address 0x84 on the i2c-bus.
 
-    For detailed informations download the specifications directly
+    For detailed information download the specifications directly
     from SGS Thomson at http://www.st.com
 
     This program is free software; you can redistribute it and/or modify
index 084bd75bb32ccacc468e2f2174e8259ecb124dfa..965c6ccc4fee68988cd209358c9a1365bc1ae3ce 100644 (file)
@@ -9,7 +9,7 @@
     It is cascadable, i.e. it can be found at the addresses
     0x86 and 0x06 on the i2c-bus.
 
-    For detailed informations download the specifications directly
+    For detailed information download the specifications directly
     from SGS Thomson at http://www.st.com
 
     This program is free software; you can redistribute it and/or modify
index b7f4e58f3624c098aeab1a4e26688afb80ca59c6..2701a4c9734d4a6c715e0d0604657b925dc12e6d 100644 (file)
@@ -9,7 +9,7 @@
     It is cascadable, i.e. it can be found at the addresses 0x98
     and 0x9a on the i2c-bus.
 
-    For detailed informations download the specifications directly
+    For detailed information download the specifications directly
     from SGS Thomson at http://www.st.com
 
     This program is free software; you can redistribute it and/or modify
index af2da977a685455da542b1964a793613e58ecef9..e6796e94dadfbe098f6859e6c4c7bf7584c5c497 100644 (file)
@@ -538,7 +538,7 @@ static int tda9840_checkit(struct CHIPSTATE *chip)
 #define TDA9855_INT    0    /* Selects inputs LOR and LOL.  (internal) */
 
 /* Unique to TDA9850:  */
-/* lower 4 bits contol SAP noise threshold, over which SAP turns off
+/* lower 4 bits control SAP noise threshold, over which SAP turns off
  * set to values of 0x00 through 0x0f for SAP1 through SAP16 */
 
 
@@ -546,7 +546,7 @@ static int tda9840_checkit(struct CHIPSTATE *chip)
 /* Common to TDA9855 and TDA9850: */
 #define TDA985x_SAP    3<<6 /* Selects SAP output, mute if not received */
 #define TDA985x_MONOSAP        2<<6 /* Selects Mono on left, SAP on right */
-#define TDA985x_STEREO 1<<6 /* Selects Stereo ouput, mono if not received */
+#define TDA985x_STEREO 1<<6 /* Selects Stereo output, mono if not received */
 #define TDA985x_MONO   0    /* Forces Mono output */
 #define TDA985x_LMU    1<<3 /* Mute (LOR/LOL for 9855, OUTL/OUTR for 9850) */
 
index 1cc83cb934e2d04f6640689b7583017edf8b71ad..3ada3bb27402b191347cab7de3e32d87bf6fe9ee 100644 (file)
@@ -67,7 +67,7 @@ enum tvp514x_std {
 };
 
 /**
- * struct tvp514x_std_info - Structure to store standard informations
+ * struct tvp514x_std_info - Structure to store standard information
  * @width: Line width in pixels
  * @height:Number of active lines
  * @video_std: Value to write in REG_VIDEO_STD register