Skip to content

Commit 9284d3b

Browse files
Swyterdtor
authored andcommitted
Input: xpad - spelling fixes for "Xbox"
The Linux kernel is notorious for misspelling X-Box, X-box, XBox or XBOX; the official spelling is actually just Xbox. Plain and simple. Tried to respect the existing notes but still following the style guide. No functional changes intended. This only affects ancillary parts. Signed-off-by: Ismael Ferreras Morezuelas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 50cd871 commit 9284d3b

File tree

4 files changed

+45
-45
lines changed

4 files changed

+45
-45
lines changed

Documentation/input/devices/xpad.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ xpad - Linux USB driver for Xbox compatible controllers
44

55
This driver exposes all first-party and third-party Xbox compatible
66
controllers. It has a long history and has enjoyed considerable usage
7-
as Window's xinput library caused most PC games to focus on Xbox
7+
as Windows' xinput library caused most PC games to focus on Xbox
88
controller compatibility.
99

1010
Due to backwards compatibility all buttons are reported as digital.
11-
This only effects Original Xbox controllers. All later controller models
11+
This only affects Original Xbox controllers. All later controller models
1212
have only digital face buttons.
1313

1414
Rumble is supported on some models of Xbox 360 controllers but not of
1515
Original Xbox controllers nor on Xbox One controllers. As of writing
16-
the Xbox One's rumble protocol has not been reverse engineered but in
16+
the Xbox One's rumble protocol has not been reverse-engineered but in
1717
the future could be supported.
1818

1919

@@ -82,7 +82,7 @@ I've tested this with Stepmania, and it works quite well.
8282
Unknown Controllers
8383
-------------------
8484

85-
If you have an unknown xbox controller, it should work just fine with
85+
If you have an unknown Xbox controller, it should work just fine with
8686
the default settings.
8787

8888
HOWEVER if you have an unknown dance pad not listed below, it will not
@@ -123,7 +123,7 @@ can be found on the net ([1]_, [2]_, [3]_).
123123

124124
Thanks to the trip splitter found on the cable you don't even need to cut the
125125
original one. You can buy an extension cable and cut that instead. That way,
126-
you can still use the controller with your X-Box, if you have one ;)
126+
you can still use the controller with your Xbox, if you have one ;)
127127

128128

129129

Documentation/input/gamepad.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Gamepads report the following events:
184184

185185
Many pads also have a third button which is branded or has a special symbol
186186
and meaning. Such buttons are mapped as BTN_MODE. Examples are the Nintendo
187-
"HOME" button, the XBox "X"-button or Sony "PS" button.
187+
"HOME" button, the Xbox "X" button or the Sony PlayStation "PS" button.
188188

189189
- Rumble:
190190

drivers/input/joystick/Kconfig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,33 +292,33 @@ config JOYSTICK_JOYDUMP
292292
module will be called joydump.
293293

294294
config JOYSTICK_XPAD
295-
tristate "X-Box gamepad support"
295+
tristate "Xbox gamepad support"
296296
depends on USB_ARCH_HAS_HCD
297297
select USB
298298
help
299-
Say Y here if you want to use the X-Box pad with your computer.
299+
Say Y here if you want to use Xbox pads with your computer.
300300
Make sure to say Y to "Joystick support" (CONFIG_INPUT_JOYDEV)
301301
and/or "Event interface support" (CONFIG_INPUT_EVDEV) as well.
302302

303-
For information about how to connect the X-Box pad to USB, see
303+
For information about how to connect the Xbox pad to USB, see
304304
<file:Documentation/input/devices/xpad.rst>.
305305

306306
To compile this driver as a module, choose M here: the
307307
module will be called xpad.
308308

309309
config JOYSTICK_XPAD_FF
310-
bool "X-Box gamepad rumble support"
310+
bool "Xbox gamepad rumble support"
311311
depends on JOYSTICK_XPAD && INPUT
312312
select INPUT_FF_MEMLESS
313313
help
314-
Say Y here if you want to take advantage of xbox 360 rumble features.
314+
Say Y here if you want to take advantage of Xbox 360 rumble features.
315315

316316
config JOYSTICK_XPAD_LEDS
317-
bool "LED Support for Xbox360 controller 'BigX' LED"
317+
bool "LED Support for the Xbox 360 controller Guide button"
318318
depends on JOYSTICK_XPAD && (LEDS_CLASS=y || LEDS_CLASS=JOYSTICK_XPAD)
319319
help
320320
This option enables support for the LED which surrounds the Big X on
321-
XBox 360 controller.
321+
Xbox 360 controllers.
322322

323323
config JOYSTICK_WALKERA0701
324324
tristate "Walkera WK-0701 RC transmitter"

drivers/input/joystick/xpad.c

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
/*
3-
* X-Box gamepad driver
3+
* Xbox gamepad driver
44
*
55
* Copyright (c) 2002 Marko Friedemann <[email protected]>
66
* 2004 Oliver Schwartz <[email protected]>,
@@ -23,8 +23,8 @@
2323
* - ITO Takayuki for providing essential xpad information on his website
2424
* - Vojtech Pavlik - iforce driver / input subsystem
2525
* - Greg Kroah-Hartman - usb-skeleton driver
26-
* - XBOX Linux project - extra USB id's
27-
* - Pekka Pöyry (quantus) - Xbox One controller reverse engineering
26+
* - Xbox Linux project - extra USB IDs
27+
* - Pekka Pöyry (quantus) - Xbox One controller reverse-engineering
2828
*
2929
* TODO:
3030
* - fine tune axes (especially trigger axes)
@@ -52,7 +52,7 @@
5252
* 2002-07-17 - 0.0.5 : simplified d-pad handling
5353
*
5454
* 2004-10-02 - 0.0.6 : DDR pad support
55-
* - borrowed from the XBOX linux kernel
55+
* - borrowed from the Xbox Linux kernel
5656
* - USB id's for commonly used dance pads are present
5757
* - dance pads will map D-PAD to buttons, not axes
5858
* - pass the module paramater 'dpad_to_buttons' to force
@@ -455,49 +455,49 @@ static const signed short xpad_btn_paddles[] = {
455455
{ XPAD_XBOXONE_VENDOR_PROTOCOL((vend), 208) }
456456

457457
static const struct usb_device_id xpad_table[] = {
458-
{ USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */
459-
XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 Controller */
458+
{ USB_INTERFACE_INFO('X', 'B', 0) }, /* Xbox USB-IF not-approved class */
459+
XPAD_XBOX360_VENDOR(0x0079), /* GPD Win 2 controller */
460460
XPAD_XBOX360_VENDOR(0x03eb), /* Wooting Keyboards (Legacy) */
461-
XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster X-Box 360 controllers */
462-
XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */
463-
XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft X-Box One controllers */
464-
XPAD_XBOX360_VENDOR(0x046d), /* Logitech X-Box 360 style controllers */
461+
XPAD_XBOX360_VENDOR(0x044f), /* Thrustmaster Xbox 360 controllers */
462+
XPAD_XBOX360_VENDOR(0x045e), /* Microsoft Xbox 360 controllers */
463+
XPAD_XBOXONE_VENDOR(0x045e), /* Microsoft Xbox One controllers */
464+
XPAD_XBOX360_VENDOR(0x046d), /* Logitech Xbox 360-style controllers */
465465
XPAD_XBOX360_VENDOR(0x056e), /* Elecom JC-U3613M */
466466
XPAD_XBOX360_VENDOR(0x06a3), /* Saitek P3600 */
467-
XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz X-Box 360 controllers */
467+
XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz Xbox 360 controllers */
468468
{ USB_DEVICE(0x0738, 0x4540) }, /* Mad Catz Beat Pad */
469469
XPAD_XBOXONE_VENDOR(0x0738), /* Mad Catz FightStick TE 2 */
470-
XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz GamePad */
470+
XPAD_XBOX360_VENDOR(0x07ff), /* Mad Catz Gamepad */
471471
XPAD_XBOX360_VENDOR(0x0c12), /* Zeroplus X-Box 360 controllers */
472-
XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f X-Box 360 controllers */
473-
XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f X-Box One controllers */
474-
XPAD_XBOX360_VENDOR(0x0f0d), /* Hori Controllers */
475-
XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori Controllers */
476-
XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries Controllers */
472+
XPAD_XBOX360_VENDOR(0x0e6f), /* 0x0e6f Xbox 360 controllers */
473+
XPAD_XBOXONE_VENDOR(0x0e6f), /* 0x0e6f Xbox One controllers */
474+
XPAD_XBOX360_VENDOR(0x0f0d), /* Hori controllers */
475+
XPAD_XBOXONE_VENDOR(0x0f0d), /* Hori controllers */
476+
XPAD_XBOX360_VENDOR(0x1038), /* SteelSeries controllers */
477477
XPAD_XBOXONE_VENDOR(0x10f5), /* Turtle Beach Controllers */
478478
XPAD_XBOX360_VENDOR(0x11c9), /* Nacon GC100XF */
479479
XPAD_XBOX360_VENDOR(0x1209), /* Ardwiino Controllers */
480-
XPAD_XBOX360_VENDOR(0x12ab), /* X-Box 360 dance pads */
481-
XPAD_XBOX360_VENDOR(0x1430), /* RedOctane X-Box 360 controllers */
482-
XPAD_XBOX360_VENDOR(0x146b), /* BigBen Interactive Controllers */
480+
XPAD_XBOX360_VENDOR(0x12ab), /* Xbox 360 dance pads */
481+
XPAD_XBOX360_VENDOR(0x1430), /* RedOctane Xbox 360 controllers */
482+
XPAD_XBOX360_VENDOR(0x146b), /* Bigben Interactive controllers */
483483
XPAD_XBOX360_VENDOR(0x1532), /* Razer Sabertooth */
484484
XPAD_XBOXONE_VENDOR(0x1532), /* Razer Wildcat */
485-
XPAD_XBOX360_VENDOR(0x15e4), /* Numark X-Box 360 controllers */
486-
XPAD_XBOX360_VENDOR(0x162e), /* Joytech X-Box 360 controllers */
485+
XPAD_XBOX360_VENDOR(0x15e4), /* Numark Xbox 360 controllers */
486+
XPAD_XBOX360_VENDOR(0x162e), /* Joytech Xbox 360 controllers */
487487
XPAD_XBOX360_VENDOR(0x1689), /* Razer Onza */
488488
XPAD_XBOX360_VENDOR(0x1949), /* Amazon controllers */
489-
XPAD_XBOX360_VENDOR(0x1bad), /* Harminix Rock Band Guitar and Drums */
490-
XPAD_XBOX360_VENDOR(0x20d6), /* PowerA Controllers */
491-
XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA Controllers */
492-
XPAD_XBOX360_VENDOR(0x24c6), /* PowerA Controllers */
493-
XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA Controllers */
489+
XPAD_XBOX360_VENDOR(0x1bad), /* Harmonix Rock Band guitar and drums */
490+
XPAD_XBOX360_VENDOR(0x20d6), /* PowerA controllers */
491+
XPAD_XBOXONE_VENDOR(0x20d6), /* PowerA controllers */
492+
XPAD_XBOX360_VENDOR(0x24c6), /* PowerA controllers */
493+
XPAD_XBOXONE_VENDOR(0x24c6), /* PowerA controllers */
494494
XPAD_XBOX360_VENDOR(0x2563), /* OneXPlayer Gamepad */
495495
XPAD_XBOX360_VENDOR(0x260d), /* Dareu H101 */
496496
XPAD_XBOX360_VENDOR(0x2c22), /* Qanba Controllers */
497497
XPAD_XBOX360_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller */
498498
XPAD_XBOXONE_VENDOR(0x2dc8), /* 8BitDo Pro 2 Wired Controller for Xbox */
499-
XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke X-Box One pad */
500-
XPAD_XBOX360_VENDOR(0x2f24), /* GameSir Controllers */
499+
XPAD_XBOXONE_VENDOR(0x2e24), /* Hyperkin Duke Xbox One pad */
500+
XPAD_XBOX360_VENDOR(0x2f24), /* GameSir controllers */
501501
XPAD_XBOX360_VENDOR(0x31e3), /* Wooting Keyboards */
502502
XPAD_XBOX360_VENDOR(0x3285), /* Nacon GC-100 */
503503
{ }
@@ -725,7 +725,7 @@ static void xpad360w_poweroff_controller(struct usb_xpad *xpad);
725725
* Completes a request by converting the data into events for the
726726
* input subsystem.
727727
*
728-
* The used report descriptor was taken from ITO Takayukis website:
728+
* The used report descriptor was taken from ITO Takayuki's website:
729729
* http://euc.jp/periphs/xbox-controller.ja.html
730730
*/
731731
static void xpad_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char *data)
@@ -1569,7 +1569,7 @@ struct xpad_led {
15691569
};
15701570

15711571
/*
1572-
* set the LEDs on Xbox360 / Wireless Controllers
1572+
* set the LEDs on Xbox 360 / Wireless Controllers
15731573
* @param command
15741574
* 0: off
15751575
* 1: all blink, then previous setting
@@ -2229,5 +2229,5 @@ static struct usb_driver xpad_driver = {
22292229
module_usb_driver(xpad_driver);
22302230

22312231
MODULE_AUTHOR("Marko Friedemann <[email protected]>");
2232-
MODULE_DESCRIPTION("X-Box pad driver");
2232+
MODULE_DESCRIPTION("Xbox pad driver");
22332233
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)