Skip to content
Permalink
Browse files
HID: nintendo: split switch support into its own file
This allows for other controllers to be supported, which do not require
the same set of features.

Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
  • Loading branch information
linkmauve authored and intel-lab-lkp committed Oct 19, 2021
1 parent 762050d commit ef6cb9d1fa01a825280bca49c84b644b8d08bfa6
Show file tree
Hide file tree
Showing 5 changed files with 2,347 additions and 2,271 deletions.
@@ -739,18 +739,13 @@ config HID_MULTITOUCH
module will be called hid-multitouch.

config HID_NINTENDO
tristate "Nintendo Joy-Con and Pro Controller support"
tristate "Nintendo controllers support"
depends on HID
depends on NEW_LEDS
depends on LEDS_CLASS
select POWER_SUPPLY
help
Adds support for the Nintendo Switch Joy-Cons and Pro Controller.
All controllers support bluetooth, and the Pro Controller also supports
its USB mode.
Adds support for various Nintendo controllers.

To compile this driver as a module, choose M here: the
module will be called hid-nintendo.
To compile this driver as a module, choose M here: the
module will be called hid-nintendo.

config NINTENDO_FF
bool "Nintendo Switch controller force feedback support"
@@ -762,6 +757,17 @@ config NINTENDO_FF
controller. For the pro controller, both rumble motors can be controlled
individually.

config HID_NINTENDO_SWITCH
tristate "Nintendo Wii U gamepad (DRC) over internal DRH"
depends on HID_NINTENDO
depends on NEW_LEDS
depends on LEDS_CLASS
select POWER_SUPPLY
help
Adds support for the Nintendo Switch Joy-Cons and Pro Controller.
All controllers support bluetooth, and the Pro Controller also supports
its USB mode.

config HID_NTI
tristate "NTI keyboard adapters"
help
@@ -79,6 +79,7 @@ obj-$(CONFIG_HID_MICROSOFT) += hid-microsoft.o
obj-$(CONFIG_HID_MONTEREY) += hid-monterey.o
obj-$(CONFIG_HID_MULTITOUCH) += hid-multitouch.o
obj-$(CONFIG_HID_NINTENDO) += hid-nintendo.o
obj-$(CONFIG_HID_NINTENDO_SWITCH) += hid-nintendo-switch.o
obj-$(CONFIG_HID_NTI) += hid-nti.o
obj-$(CONFIG_HID_NTRIG) += hid-ntrig.o
obj-$(CONFIG_HID_ORTEK) += hid-ortek.o

0 comments on commit ef6cb9d

Please sign in to comment.