]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
media: rc: fix several typos
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 19:29:01 +0000 (14:29 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 1 Mar 2019 14:39:39 +0000 (09:39 -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: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
15 files changed:
drivers/media/rc/Kconfig
drivers/media/rc/ati_remote.c
drivers/media/rc/ene_ir.c
drivers/media/rc/ene_ir.h
drivers/media/rc/fintek-cir.h
drivers/media/rc/ir-xmp-decoder.c
drivers/media/rc/ite-cir.c
drivers/media/rc/keymaps/rc-behold-columbus.c
drivers/media/rc/keymaps/rc-behold.c
drivers/media/rc/keymaps/rc-manli.c
drivers/media/rc/keymaps/rc-powercolor-real-angel.c
drivers/media/rc/mceusb.c
drivers/media/rc/rc-ir-raw.c
drivers/media/rc/rc-main.c
drivers/media/rc/redrat3.c

index 8e95f6eac89ddedd3a2c468e65d8af2d0b7f9685..96ce3e5524e0153943f6acd6d989e06f490c229b 100644 (file)
@@ -253,7 +253,7 @@ config IR_FINTEK
        depends on RC_CORE
        ---help---
           Say Y here to enable support for integrated infrared receiver
-          /transciever made by Fintek. This chip is found on assorted
+          /transceiver made by Fintek. This chip is found on assorted
           Jetway motherboards (and of course, possibly others).
 
           To compile this driver as a module, choose M here: the
@@ -287,7 +287,7 @@ config IR_NUVOTON
        depends on RC_CORE
        ---help---
           Say Y here to enable support for integrated infrared receiver
-          /transciever made by Nuvoton (formerly Winbond). This chip is
+          /transceiver made by Nuvoton (formerly Winbond). This chip is
           found in the ASRock ION 330HT, as well as assorted Intel
           DP55-series motherboards (and of course, possibly others).
 
index 265e91a2a70da146362302cbfcf121a0dbf2a06f..bc2da64858c3feaf0d3d7e111e54bdc08d7e4e40 100644 (file)
@@ -304,7 +304,7 @@ static const struct {
        {KIND_LITERAL,  0x7c, BTN_RIGHT},/* right btn down */
        {KIND_LITERAL,  0x7d, BTN_RIGHT},/* right btn up */
 
-       /* Artificial "doubleclick" events are generated by the hardware.
+       /* Artificial "double-click" events are generated by the hardware.
         * They are mapped to the "side" and "extra" mouse buttons here. */
        {KIND_FILTERED, 0x7a, BTN_SIDE}, /* left dblclick */
        {KIND_FILTERED, 0x7e, BTN_EXTRA},/* right dblclick */
index dd2fd307ef859e19811db97adcb3dbbf2e58cc6a..293ccee2c05e56f010924a4a20033314f4f61bcd 100644 (file)
@@ -184,7 +184,7 @@ static int ene_hw_detect(struct ene_device *dev)
        return 0;
 }
 
-/* Read properities of hw sample buffer */
+/* Read properties of hw sample buffer */
 static void ene_rx_setup_hw_buffer(struct ene_device *dev)
 {
        u16 tmp;
index 494646b2a2844e0edb5dc3c670de07241c19c73e..0a45352efe40f8badafdee2433afa0bae3ea9482 100644 (file)
 #define ENE_CIRDAT_IN          0xFEC7
 
 
-/* RLC configuration - sample period (1us resulution) + idle mode */
+/* RLC configuration - sample period (1us resolution) + idle mode */
 #define ENE_CIRRLC_CFG         0xFEC8
 #define ENE_CIRRLC_CFG_OVERFLOW        0x80    /* interrupt on overflows if set */
 #define ENE_DEFAULT_SAMPLE_PERIOD 50
index ac34a774d018343d16a48c9e3ea1e56b91b0cca6..dffe0bbfc6ebfa30182349c5c3b3d2d1f48f8c22 100644 (file)
@@ -176,7 +176,7 @@ struct fintek_dev {
 #define CIR_CR_IRCS            0x05 /* Before host writes command to IR, host
                                        must set to 1. When host finshes write
                                        command to IR, host must clear to 0. */
-#define CIR_CR_COMMAND_DATA    0x06 /* Host read or write comand data */
+#define CIR_CR_COMMAND_DATA    0x06 /* Host read or write command data */
 #define CIR_CR_CLASS           0x07 /* 0xff = rx-only, 0x66 = rx + 2 tx,
                                        0x33 = rx + 1 tx */
 #define CIR_CR_DEV_EN          0x30 /* bit0 = 1 enables CIR */
index c965f51df1c1a2477531752ef33bcf85b71c6c84..2639b0b6d2f8958d28ba76efb929057fa369c915 100644 (file)
@@ -94,7 +94,7 @@ static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev)
                        n = data->durations;
                        /*
                         * the 4th nibble should be 15 so base the divider on this
-                        * to transform durations into nibbles. Substract 2000 from
+                        * to transform durations into nibbles. Subtract 2000 from
                         * the divider to compensate for fluctuations in the signal
                         */
                        divider = (n[3] - XMP_NIBBLE_PREFIX) / 15 - 2000;
index cd3c60ba8519ba92c247a0be319d5e09bb66f689..1d48a9e59f934a788692971ca0949a1914810a93 100644 (file)
@@ -515,7 +515,7 @@ static int ite_tx_ir(struct rc_dev *rcdev, unsigned *txbuf, unsigned n)
        /* and set the carrier values for reception */
        ite_set_carrier_params(dev);
 
-       /* reenable the receiver */
+       /* re-enable the receiver */
        if (dev->in_use)
                dev->params.enable_rx(dev);
 
index e73057945bd16ead6861021f37bdb601ca4970b1..b68380a76010523f47cf0dd0f593ad7a14e1f066 100644 (file)
@@ -14,7 +14,7 @@
  * The "ascii-art picture" below (in comments, first row
  * is the keycode in hex, and subsequent row(s) shows
  * the button labels (several variants when appropriate)
- * helps to descide which keycodes to assign to the buttons.
+ * helps to decide which keycodes to assign to the buttons.
  */
 
 static struct rc_map_table behold_columbus[] = {
@@ -68,7 +68,7 @@ static struct rc_map_table behold_columbus[] = {
        { 0x18, KEY_VOLUMEDOWN },
 
        /*   0x0E   0x1E     0x0F     0x1A  *
-        *   Stop   Pause  Previouse  Next  *
+        *   Stop   Pause  Previous   Next  *
         *                                  */
 
        { 0x0E, KEY_STOP },
index e1b2c8e268834e20876a82fa43606c7191a898ef..2b7cddb2f36d1cd33f19c7a5606f2b83b8a88316 100644 (file)
@@ -17,7 +17,7 @@
  * The "ascii-art picture" below (in comments, first row
  * is the keycode in hex, and subsequent row(s) shows
  * the button labels (several variants when appropriate)
- * helps to descide which keycodes to assign to the buttons.
+ * helps to decide which keycodes to assign to the buttons.
  */
 
 static struct rc_map_table behold[] = {
index 29c9feaf413b5c70afc5bb69d1d6eb821137bc74..5e9a49e2dd6ae06f297e83cea2e8dacf279bdb5c 100644 (file)
@@ -14,7 +14,7 @@
    The "ascii-art picture" below (in comments, first row
    is the keycode in hex, and subsequent row(s) shows
    the button labels (several variants when appropriate)
-   helps to descide which keycodes to assign to the buttons.
+   helps to decide which keycodes to assign to the buttons.
  */
 
 static struct rc_map_table manli[] = {
index 4988e71c524cfe1401b5205806bb9cbb6e97c863..cf98cf8dc13c1ce0df90d318708cf9c665c5b743 100644 (file)
@@ -26,7 +26,7 @@ static struct rc_map_table powercolor_real_angel[] = {
        { 0x07, KEY_7 },
        { 0x08, KEY_8 },
        { 0x09, KEY_9 },
-       { 0x0a, KEY_DIGITS },           /* single, double, tripple digit */
+       { 0x0a, KEY_DIGITS },           /* single, double, triple digit */
        { 0x29, KEY_PREVIOUS },         /* previous channel */
        { 0x12, KEY_BRIGHTNESSUP },
        { 0x13, KEY_BRIGHTNESSDOWN },
index 8d7d3ef88862fb431a06bae9241da87567891d04..fa4840940486569a88c03ad3c128e6196cb1040c 100644 (file)
@@ -79,7 +79,7 @@
 #define MCE_CMD                        0x1f
 #define MCE_PORT_IR            0x4     /* (0x4 << 5) | MCE_CMD = 0x9f */
 #define MCE_PORT_SYS           0x7     /* (0x7 << 5) | MCE_CMD = 0xff */
-#define MCE_PORT_SER           0x6     /* 0xc0 thru 0xdf flush & 0x1f bytes */
+#define MCE_PORT_SER           0x6     /* 0xc0 through 0xdf flush & 0x1f bytes */
 #define MCE_PORT_MASK          0xe0    /* Mask out command bits */
 
 /* Command port headers */
index e10b4644a442d7c91ce9aa0eeb1174e8ba414b15..39dd46bbd0c1f044041f1d8a4b078d225b5016fb 100644 (file)
@@ -186,7 +186,7 @@ int ir_raw_event_store_with_filter(struct rc_dev *dev, struct ir_raw_event *ev)
                dev->raw->this_ev = *ev;
        }
 
-       /* Enter idle mode if nessesary */
+       /* Enter idle mode if necessary */
        if (!ev->pulse && dev->timeout &&
            dev->raw->this_ev.duration >= dev->timeout)
                ir_raw_event_set_idle(dev, true);
index 141fbf191bc48e798f6fd6051f37f7bdae4dbe68..e8fa28e20192ac18332db866218c717f954a3867 100644 (file)
@@ -1056,7 +1056,7 @@ struct rc_filter_attribute {
  * @buf:       a pointer to the output buffer
  *
  * This routine is a callback routine for input read the IR protocol type(s).
- * it is trigged by reading /sys/class/rc/rc?/protocols.
+ * it is triggered by reading /sys/class/rc/rc?/protocols.
  * It returns the protocol names of supported protocols.
  * Enabled protocols are printed in brackets.
  *
@@ -1227,7 +1227,7 @@ void ir_raw_load_modules(u64 *protocols)
  * @len:       length of the input buffer
  *
  * This routine is for changing the IR protocol type.
- * It is trigged by writing to /sys/class/rc/rc?/[wakeup_]protocols.
+ * It is triggered by writing to /sys/class/rc/rc?/[wakeup_]protocols.
  * See parse_protocol_change() for the valid commands.
  * Returns @len on success or a negative error code.
  *
@@ -1311,7 +1311,7 @@ out:
  * @buf:       a pointer to the output buffer
  *
  * This routine is a callback routine to read a scancode filter value or mask.
- * It is trigged by reading /sys/class/rc/rc?/[wakeup_]filter[_mask].
+ * It is triggered by reading /sys/class/rc/rc?/[wakeup_]filter[_mask].
  * It prints the current scancode filter value or mask of the appropriate filter
  * type in hexadecimal into @buf and returns the size of the buffer.
  *
@@ -1354,7 +1354,7 @@ static ssize_t show_filter(struct device *device,
  * @len:       length of the input buffer
  *
  * This routine is for changing a scancode filter value or mask.
- * It is trigged by writing to /sys/class/rc/rc?/[wakeup_]filter[_mask].
+ * It is triggered by writing to /sys/class/rc/rc?/[wakeup_]filter[_mask].
  * Returns -EINVAL if an invalid filter value for the current protocol was
  * specified or if scancode filtering is not supported by the driver, otherwise
  * returns @len.
@@ -1438,7 +1438,7 @@ unlock:
  * @buf:       a pointer to the output buffer
  *
  * This routine is a callback routine for input read the IR protocol type(s).
- * it is trigged by reading /sys/class/rc/rc?/wakeup_protocols.
+ * it is triggered by reading /sys/class/rc/rc?/wakeup_protocols.
  * It returns the protocol names of supported protocols.
  * The enabled protocols are printed in brackets.
  *
@@ -1489,7 +1489,7 @@ static ssize_t show_wakeup_protocols(struct device *device,
  * @len:       length of the input buffer
  *
  * This routine is for changing the IR protocol type.
- * It is trigged by writing to /sys/class/rc/rc?/wakeup_protocols.
+ * It is triggered by writing to /sys/class/rc/rc?/wakeup_protocols.
  * Returns @len on success or a negative error code.
  *
  * dev->lock is taken to guard against races between
index 08c51ffd74a0e3f35ae14a090dadc78e5d57c161..b82a5c9db12c4f7a7df47815feda0e3f59357790 100644 (file)
@@ -140,7 +140,7 @@ MODULE_PARM_DESC(length_fuzz, "Length Fuzz (0-127)");
  * When receiving a continuous ir stream (for example when a user is
  * holding a button down on a remote), this specifies the minimum size
  * of a space when the redrat3 sends a irdata packet to the host. Specified
- * in miliseconds. Default value 18ms.
+ * in milliseconds. Default value 18ms.
  * The value can be between 2 and 30 inclusive.
  */
 static int minimum_pause = 18;