summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-18 14:29:01 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-01 09:39:39 -0500
commit04ad30112aec61004f994d8f51461ec06e208e54 (patch)
tree63e50589d578a1c6d94236f49406dcb6b3b91941
parent8b72c18d467fad497fe73c59915556e32bc5241d (diff)
media: rc: fix several typos
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>
-rw-r--r--drivers/media/rc/Kconfig4
-rw-r--r--drivers/media/rc/ati_remote.c2
-rw-r--r--drivers/media/rc/ene_ir.c2
-rw-r--r--drivers/media/rc/ene_ir.h2
-rw-r--r--drivers/media/rc/fintek-cir.h2
-rw-r--r--drivers/media/rc/ir-xmp-decoder.c2
-rw-r--r--drivers/media/rc/ite-cir.c2
-rw-r--r--drivers/media/rc/keymaps/rc-behold-columbus.c4
-rw-r--r--drivers/media/rc/keymaps/rc-behold.c2
-rw-r--r--drivers/media/rc/keymaps/rc-manli.c2
-rw-r--r--drivers/media/rc/keymaps/rc-powercolor-real-angel.c2
-rw-r--r--drivers/media/rc/mceusb.c2
-rw-r--r--drivers/media/rc/rc-ir-raw.c2
-rw-r--r--drivers/media/rc/rc-main.c12
-rw-r--r--drivers/media/rc/redrat3.c2
15 files changed, 22 insertions, 22 deletions
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index 8e95f6eac89d..96ce3e5524e0 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -253,7 +253,7 @@ config IR_FINTEK
253 depends on RC_CORE 253 depends on RC_CORE
254 ---help--- 254 ---help---
255 Say Y here to enable support for integrated infrared receiver 255 Say Y here to enable support for integrated infrared receiver
256 /transciever made by Fintek. This chip is found on assorted 256 /transceiver made by Fintek. This chip is found on assorted
257 Jetway motherboards (and of course, possibly others). 257 Jetway motherboards (and of course, possibly others).
258 258
259 To compile this driver as a module, choose M here: the 259 To compile this driver as a module, choose M here: the
@@ -287,7 +287,7 @@ config IR_NUVOTON
287 depends on RC_CORE 287 depends on RC_CORE
288 ---help--- 288 ---help---
289 Say Y here to enable support for integrated infrared receiver 289 Say Y here to enable support for integrated infrared receiver
290 /transciever made by Nuvoton (formerly Winbond). This chip is 290 /transceiver made by Nuvoton (formerly Winbond). This chip is
291 found in the ASRock ION 330HT, as well as assorted Intel 291 found in the ASRock ION 330HT, as well as assorted Intel
292 DP55-series motherboards (and of course, possibly others). 292 DP55-series motherboards (and of course, possibly others).
293 293
diff --git a/drivers/media/rc/ati_remote.c b/drivers/media/rc/ati_remote.c
index 265e91a2a70d..bc2da64858c3 100644
--- a/drivers/media/rc/ati_remote.c
+++ b/drivers/media/rc/ati_remote.c
@@ -304,7 +304,7 @@ static const struct {
304 {KIND_LITERAL, 0x7c, BTN_RIGHT},/* right btn down */ 304 {KIND_LITERAL, 0x7c, BTN_RIGHT},/* right btn down */
305 {KIND_LITERAL, 0x7d, BTN_RIGHT},/* right btn up */ 305 {KIND_LITERAL, 0x7d, BTN_RIGHT},/* right btn up */
306 306
307 /* Artificial "doubleclick" events are generated by the hardware. 307 /* Artificial "double-click" events are generated by the hardware.
308 * They are mapped to the "side" and "extra" mouse buttons here. */ 308 * They are mapped to the "side" and "extra" mouse buttons here. */
309 {KIND_FILTERED, 0x7a, BTN_SIDE}, /* left dblclick */ 309 {KIND_FILTERED, 0x7a, BTN_SIDE}, /* left dblclick */
310 {KIND_FILTERED, 0x7e, BTN_EXTRA},/* right dblclick */ 310 {KIND_FILTERED, 0x7e, BTN_EXTRA},/* right dblclick */
diff --git a/drivers/media/rc/ene_ir.c b/drivers/media/rc/ene_ir.c
index dd2fd307ef85..293ccee2c05e 100644
--- a/drivers/media/rc/ene_ir.c
+++ b/drivers/media/rc/ene_ir.c
@@ -184,7 +184,7 @@ static int ene_hw_detect(struct ene_device *dev)
184 return 0; 184 return 0;
185} 185}
186 186
187/* Read properities of hw sample buffer */ 187/* Read properties of hw sample buffer */
188static void ene_rx_setup_hw_buffer(struct ene_device *dev) 188static void ene_rx_setup_hw_buffer(struct ene_device *dev)
189{ 189{
190 u16 tmp; 190 u16 tmp;
diff --git a/drivers/media/rc/ene_ir.h b/drivers/media/rc/ene_ir.h
index 494646b2a284..0a45352efe40 100644
--- a/drivers/media/rc/ene_ir.h
+++ b/drivers/media/rc/ene_ir.h
@@ -118,7 +118,7 @@
118#define ENE_CIRDAT_IN 0xFEC7 118#define ENE_CIRDAT_IN 0xFEC7
119 119
120 120
121/* RLC configuration - sample period (1us resulution) + idle mode */ 121/* RLC configuration - sample period (1us resolution) + idle mode */
122#define ENE_CIRRLC_CFG 0xFEC8 122#define ENE_CIRRLC_CFG 0xFEC8
123#define ENE_CIRRLC_CFG_OVERFLOW 0x80 /* interrupt on overflows if set */ 123#define ENE_CIRRLC_CFG_OVERFLOW 0x80 /* interrupt on overflows if set */
124#define ENE_DEFAULT_SAMPLE_PERIOD 50 124#define ENE_DEFAULT_SAMPLE_PERIOD 50
diff --git a/drivers/media/rc/fintek-cir.h b/drivers/media/rc/fintek-cir.h
index ac34a774d018..dffe0bbfc6eb 100644
--- a/drivers/media/rc/fintek-cir.h
+++ b/drivers/media/rc/fintek-cir.h
@@ -176,7 +176,7 @@ struct fintek_dev {
176#define CIR_CR_IRCS 0x05 /* Before host writes command to IR, host 176#define CIR_CR_IRCS 0x05 /* Before host writes command to IR, host
177 must set to 1. When host finshes write 177 must set to 1. When host finshes write
178 command to IR, host must clear to 0. */ 178 command to IR, host must clear to 0. */
179#define CIR_CR_COMMAND_DATA 0x06 /* Host read or write comand data */ 179#define CIR_CR_COMMAND_DATA 0x06 /* Host read or write command data */
180#define CIR_CR_CLASS 0x07 /* 0xff = rx-only, 0x66 = rx + 2 tx, 180#define CIR_CR_CLASS 0x07 /* 0xff = rx-only, 0x66 = rx + 2 tx,
181 0x33 = rx + 1 tx */ 181 0x33 = rx + 1 tx */
182#define CIR_CR_DEV_EN 0x30 /* bit0 = 1 enables CIR */ 182#define CIR_CR_DEV_EN 0x30 /* bit0 = 1 enables CIR */
diff --git a/drivers/media/rc/ir-xmp-decoder.c b/drivers/media/rc/ir-xmp-decoder.c
index c965f51df1c1..2639b0b6d2f8 100644
--- a/drivers/media/rc/ir-xmp-decoder.c
+++ b/drivers/media/rc/ir-xmp-decoder.c
@@ -94,7 +94,7 @@ static int ir_xmp_decode(struct rc_dev *dev, struct ir_raw_event ev)
94 n = data->durations; 94 n = data->durations;
95 /* 95 /*
96 * the 4th nibble should be 15 so base the divider on this 96 * the 4th nibble should be 15 so base the divider on this
97 * to transform durations into nibbles. Substract 2000 from 97 * to transform durations into nibbles. Subtract 2000 from
98 * the divider to compensate for fluctuations in the signal 98 * the divider to compensate for fluctuations in the signal
99 */ 99 */
100 divider = (n[3] - XMP_NIBBLE_PREFIX) / 15 - 2000; 100 divider = (n[3] - XMP_NIBBLE_PREFIX) / 15 - 2000;
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c
index cd3c60ba8519..1d48a9e59f93 100644
--- a/drivers/media/rc/ite-cir.c
+++ b/drivers/media/rc/ite-cir.c
@@ -515,7 +515,7 @@ static int ite_tx_ir(struct rc_dev *rcdev, unsigned *txbuf, unsigned n)
515 /* and set the carrier values for reception */ 515 /* and set the carrier values for reception */
516 ite_set_carrier_params(dev); 516 ite_set_carrier_params(dev);
517 517
518 /* reenable the receiver */ 518 /* re-enable the receiver */
519 if (dev->in_use) 519 if (dev->in_use)
520 dev->params.enable_rx(dev); 520 dev->params.enable_rx(dev);
521 521
diff --git a/drivers/media/rc/keymaps/rc-behold-columbus.c b/drivers/media/rc/keymaps/rc-behold-columbus.c
index e73057945bd1..b68380a76010 100644
--- a/drivers/media/rc/keymaps/rc-behold-columbus.c
+++ b/drivers/media/rc/keymaps/rc-behold-columbus.c
@@ -14,7 +14,7 @@
14 * The "ascii-art picture" below (in comments, first row 14 * The "ascii-art picture" below (in comments, first row
15 * is the keycode in hex, and subsequent row(s) shows 15 * is the keycode in hex, and subsequent row(s) shows
16 * the button labels (several variants when appropriate) 16 * the button labels (several variants when appropriate)
17 * helps to descide which keycodes to assign to the buttons. 17 * helps to decide which keycodes to assign to the buttons.
18 */ 18 */
19 19
20static struct rc_map_table behold_columbus[] = { 20static struct rc_map_table behold_columbus[] = {
@@ -68,7 +68,7 @@ static struct rc_map_table behold_columbus[] = {
68 { 0x18, KEY_VOLUMEDOWN }, 68 { 0x18, KEY_VOLUMEDOWN },
69 69
70 /* 0x0E 0x1E 0x0F 0x1A * 70 /* 0x0E 0x1E 0x0F 0x1A *
71 * Stop Pause Previouse Next * 71 * Stop Pause Previous Next *
72 * */ 72 * */
73 73
74 { 0x0E, KEY_STOP }, 74 { 0x0E, KEY_STOP },
diff --git a/drivers/media/rc/keymaps/rc-behold.c b/drivers/media/rc/keymaps/rc-behold.c
index e1b2c8e26883..2b7cddb2f36d 100644
--- a/drivers/media/rc/keymaps/rc-behold.c
+++ b/drivers/media/rc/keymaps/rc-behold.c
@@ -17,7 +17,7 @@
17 * The "ascii-art picture" below (in comments, first row 17 * The "ascii-art picture" below (in comments, first row
18 * is the keycode in hex, and subsequent row(s) shows 18 * is the keycode in hex, and subsequent row(s) shows
19 * the button labels (several variants when appropriate) 19 * the button labels (several variants when appropriate)
20 * helps to descide which keycodes to assign to the buttons. 20 * helps to decide which keycodes to assign to the buttons.
21 */ 21 */
22 22
23static struct rc_map_table behold[] = { 23static struct rc_map_table behold[] = {
diff --git a/drivers/media/rc/keymaps/rc-manli.c b/drivers/media/rc/keymaps/rc-manli.c
index 29c9feaf413b..5e9a49e2dd6a 100644
--- a/drivers/media/rc/keymaps/rc-manli.c
+++ b/drivers/media/rc/keymaps/rc-manli.c
@@ -14,7 +14,7 @@
14 The "ascii-art picture" below (in comments, first row 14 The "ascii-art picture" below (in comments, first row
15 is the keycode in hex, and subsequent row(s) shows 15 is the keycode in hex, and subsequent row(s) shows
16 the button labels (several variants when appropriate) 16 the button labels (several variants when appropriate)
17 helps to descide which keycodes to assign to the buttons. 17 helps to decide which keycodes to assign to the buttons.
18 */ 18 */
19 19
20static struct rc_map_table manli[] = { 20static struct rc_map_table manli[] = {
diff --git a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
index 4988e71c524c..cf98cf8dc13c 100644
--- a/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
+++ b/drivers/media/rc/keymaps/rc-powercolor-real-angel.c
@@ -26,7 +26,7 @@ static struct rc_map_table powercolor_real_angel[] = {
26 { 0x07, KEY_7 }, 26 { 0x07, KEY_7 },
27 { 0x08, KEY_8 }, 27 { 0x08, KEY_8 },
28 { 0x09, KEY_9 }, 28 { 0x09, KEY_9 },
29 { 0x0a, KEY_DIGITS }, /* single, double, tripple digit */ 29 { 0x0a, KEY_DIGITS }, /* single, double, triple digit */
30 { 0x29, KEY_PREVIOUS }, /* previous channel */ 30 { 0x29, KEY_PREVIOUS }, /* previous channel */
31 { 0x12, KEY_BRIGHTNESSUP }, 31 { 0x12, KEY_BRIGHTNESSUP },
32 { 0x13, KEY_BRIGHTNESSDOWN }, 32 { 0x13, KEY_BRIGHTNESSDOWN },
diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c
index 8d7d3ef88862..fa4840940486 100644
--- a/drivers/media/rc/mceusb.c
+++ b/drivers/media/rc/mceusb.c
@@ -79,7 +79,7 @@
79#define MCE_CMD 0x1f 79#define MCE_CMD 0x1f
80#define MCE_PORT_IR 0x4 /* (0x4 << 5) | MCE_CMD = 0x9f */ 80#define MCE_PORT_IR 0x4 /* (0x4 << 5) | MCE_CMD = 0x9f */
81#define MCE_PORT_SYS 0x7 /* (0x7 << 5) | MCE_CMD = 0xff */ 81#define MCE_PORT_SYS 0x7 /* (0x7 << 5) | MCE_CMD = 0xff */
82#define MCE_PORT_SER 0x6 /* 0xc0 thru 0xdf flush & 0x1f bytes */ 82#define MCE_PORT_SER 0x6 /* 0xc0 through 0xdf flush & 0x1f bytes */
83#define MCE_PORT_MASK 0xe0 /* Mask out command bits */ 83#define MCE_PORT_MASK 0xe0 /* Mask out command bits */
84 84
85/* Command port headers */ 85/* Command port headers */
diff --git a/drivers/media/rc/rc-ir-raw.c b/drivers/media/rc/rc-ir-raw.c
index e10b4644a442..39dd46bbd0c1 100644
--- a/drivers/media/rc/rc-ir-raw.c
+++ b/drivers/media/rc/rc-ir-raw.c
@@ -186,7 +186,7 @@ int ir_raw_event_store_with_filter(struct rc_dev *dev, struct ir_raw_event *ev)
186 dev->raw->this_ev = *ev; 186 dev->raw->this_ev = *ev;
187 } 187 }
188 188
189 /* Enter idle mode if nessesary */ 189 /* Enter idle mode if necessary */
190 if (!ev->pulse && dev->timeout && 190 if (!ev->pulse && dev->timeout &&
191 dev->raw->this_ev.duration >= dev->timeout) 191 dev->raw->this_ev.duration >= dev->timeout)
192 ir_raw_event_set_idle(dev, true); 192 ir_raw_event_set_idle(dev, true);
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 141fbf191bc4..e8fa28e20192 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1056,7 +1056,7 @@ struct rc_filter_attribute {
1056 * @buf: a pointer to the output buffer 1056 * @buf: a pointer to the output buffer
1057 * 1057 *
1058 * This routine is a callback routine for input read the IR protocol type(s). 1058 * This routine is a callback routine for input read the IR protocol type(s).
1059 * it is trigged by reading /sys/class/rc/rc?/protocols. 1059 * it is triggered by reading /sys/class/rc/rc?/protocols.
1060 * It returns the protocol names of supported protocols. 1060 * It returns the protocol names of supported protocols.
1061 * Enabled protocols are printed in brackets. 1061 * Enabled protocols are printed in brackets.
1062 * 1062 *
@@ -1227,7 +1227,7 @@ void ir_raw_load_modules(u64 *protocols)
1227 * @len: length of the input buffer 1227 * @len: length of the input buffer
1228 * 1228 *
1229 * This routine is for changing the IR protocol type. 1229 * This routine is for changing the IR protocol type.
1230 * It is trigged by writing to /sys/class/rc/rc?/[wakeup_]protocols. 1230 * It is triggered by writing to /sys/class/rc/rc?/[wakeup_]protocols.
1231 * See parse_protocol_change() for the valid commands. 1231 * See parse_protocol_change() for the valid commands.
1232 * Returns @len on success or a negative error code. 1232 * Returns @len on success or a negative error code.
1233 * 1233 *
@@ -1311,7 +1311,7 @@ out:
1311 * @buf: a pointer to the output buffer 1311 * @buf: a pointer to the output buffer
1312 * 1312 *
1313 * This routine is a callback routine to read a scancode filter value or mask. 1313 * This routine is a callback routine to read a scancode filter value or mask.
1314 * It is trigged by reading /sys/class/rc/rc?/[wakeup_]filter[_mask]. 1314 * It is triggered by reading /sys/class/rc/rc?/[wakeup_]filter[_mask].
1315 * It prints the current scancode filter value or mask of the appropriate filter 1315 * It prints the current scancode filter value or mask of the appropriate filter
1316 * type in hexadecimal into @buf and returns the size of the buffer. 1316 * type in hexadecimal into @buf and returns the size of the buffer.
1317 * 1317 *
@@ -1354,7 +1354,7 @@ static ssize_t show_filter(struct device *device,
1354 * @len: length of the input buffer 1354 * @len: length of the input buffer
1355 * 1355 *
1356 * This routine is for changing a scancode filter value or mask. 1356 * This routine is for changing a scancode filter value or mask.
1357 * It is trigged by writing to /sys/class/rc/rc?/[wakeup_]filter[_mask]. 1357 * It is triggered by writing to /sys/class/rc/rc?/[wakeup_]filter[_mask].
1358 * Returns -EINVAL if an invalid filter value for the current protocol was 1358 * Returns -EINVAL if an invalid filter value for the current protocol was
1359 * specified or if scancode filtering is not supported by the driver, otherwise 1359 * specified or if scancode filtering is not supported by the driver, otherwise
1360 * returns @len. 1360 * returns @len.
@@ -1438,7 +1438,7 @@ unlock:
1438 * @buf: a pointer to the output buffer 1438 * @buf: a pointer to the output buffer
1439 * 1439 *
1440 * This routine is a callback routine for input read the IR protocol type(s). 1440 * This routine is a callback routine for input read the IR protocol type(s).
1441 * it is trigged by reading /sys/class/rc/rc?/wakeup_protocols. 1441 * it is triggered by reading /sys/class/rc/rc?/wakeup_protocols.
1442 * It returns the protocol names of supported protocols. 1442 * It returns the protocol names of supported protocols.
1443 * The enabled protocols are printed in brackets. 1443 * The enabled protocols are printed in brackets.
1444 * 1444 *
@@ -1489,7 +1489,7 @@ static ssize_t show_wakeup_protocols(struct device *device,
1489 * @len: length of the input buffer 1489 * @len: length of the input buffer
1490 * 1490 *
1491 * This routine is for changing the IR protocol type. 1491 * This routine is for changing the IR protocol type.
1492 * It is trigged by writing to /sys/class/rc/rc?/wakeup_protocols. 1492 * It is triggered by writing to /sys/class/rc/rc?/wakeup_protocols.
1493 * Returns @len on success or a negative error code. 1493 * Returns @len on success or a negative error code.
1494 * 1494 *
1495 * dev->lock is taken to guard against races between 1495 * dev->lock is taken to guard against races between
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c
index 08c51ffd74a0..b82a5c9db12c 100644
--- a/drivers/media/rc/redrat3.c
+++ b/drivers/media/rc/redrat3.c
@@ -140,7 +140,7 @@ MODULE_PARM_DESC(length_fuzz, "Length Fuzz (0-127)");
140 * When receiving a continuous ir stream (for example when a user is 140 * When receiving a continuous ir stream (for example when a user is
141 * holding a button down on a remote), this specifies the minimum size 141 * holding a button down on a remote), this specifies the minimum size
142 * of a space when the redrat3 sends a irdata packet to the host. Specified 142 * of a space when the redrat3 sends a irdata packet to the host. Specified
143 * in miliseconds. Default value 18ms. 143 * in milliseconds. Default value 18ms.
144 * The value can be between 2 and 30 inclusive. 144 * The value can be between 2 and 30 inclusive.
145 */ 145 */
146static int minimum_pause = 18; 146static int minimum_pause = 18;