diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-05-05 17:12:51 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-03 05:07:00 -0400 |
commit | 27f06942142e7a17757b5de1dc4f128c179b7c13 (patch) | |
tree | a494da599d33a444d530314221e2738f1f0a39cf /drivers/hid/Makefile | |
parent | d758b1f0c527aedc5e83a565a0737d9ac21ea46a (diff) |
HID: wiimote: add sub-device module infrastructure
To avoid loading all sub-device drivers for every Wii Remote, even though
the required hardware might not be available, we introduce a module layer.
The module layer specifies which sub-devices are available on each
device-type. After device detection, we only load the modules for the
detected device. If module loading fails, we unload everything and mark
the device as WIIMOTE_DEV_UNKNOWN. As long as a device is marked as
"unknown", no sub-devices will be used and the device is considered
unsupported.
All the different sub-devices, including KEYS, RUMBLE, BATTERY, LEDS,
ACCELEROMETER, IR and more will be ported in follow-up patches to the new
module layer.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Makefile')
-rw-r--r-- | drivers/hid/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile index 2065694f57ab..2c2222684043 100644 --- a/drivers/hid/Makefile +++ b/drivers/hid/Makefile | |||
@@ -28,7 +28,7 @@ ifdef CONFIG_LOGIWHEELS_FF | |||
28 | hid-logitech-y += hid-lg4ff.o | 28 | hid-logitech-y += hid-lg4ff.o |
29 | endif | 29 | endif |
30 | 30 | ||
31 | hid-wiimote-y := hid-wiimote-core.o | 31 | hid-wiimote-y := hid-wiimote-core.o hid-wiimote-modules.o |
32 | ifdef CONFIG_HID_WIIMOTE_EXT | 32 | ifdef CONFIG_HID_WIIMOTE_EXT |
33 | hid-wiimote-y += hid-wiimote-ext.o | 33 | hid-wiimote-y += hid-wiimote-ext.o |
34 | endif | 34 | endif |