aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2011-07-05 07:45:08 -0400
committerJiri Kosina <jkosina@suse.cz>2011-07-11 08:30:21 -0400
commitfb51b44385a0ded0d629d5cf4a2095f80fb01b56 (patch)
tree544151d9634c62864d481006d15d484ea684d5ce /drivers/hid
parent4699d4423c07a1db35ea9453eac3a07e818338f9 (diff)
HID: wiimote: Add Nintendo Wii Remote driver stub
Add stub driver for the Nintendo Wii Remote. The wii remote uses the HID protocol to communicate with the host over bluetooth. Hence, add dependency for HIDP and place driver in hid subsystem. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/Kconfig6
-rw-r--r--drivers/hid/Makefile1
-rw-r--r--drivers/hid/hid-wiimote.c32
3 files changed, 39 insertions, 0 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 36ca465c00ce..df50c2540dda 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -568,6 +568,12 @@ config HID_WACOM_POWER_SUPPLY
568 Say Y here if you want to enable power supply status monitoring for 568 Say Y here if you want to enable power supply status monitoring for
569 Wacom Bluetooth devices. 569 Wacom Bluetooth devices.
570 570
571config HID_WIIMOTE
572 tristate "Nintendo Wii Remote support"
573 depends on BT_HIDP
574 ---help---
575 Support for the Nintendo Wii Remote bluetooth device.
576
571config HID_ZEROPLUS 577config HID_ZEROPLUS
572 tristate "Zeroplus based game controller support" 578 tristate "Zeroplus based game controller support"
573 depends on USB_HID 579 depends on USB_HID
diff --git a/drivers/hid/Makefile b/drivers/hid/Makefile
index f8cc4ea7335a..4ed9bedada67 100644
--- a/drivers/hid/Makefile
+++ b/drivers/hid/Makefile
@@ -73,6 +73,7 @@ obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o
73obj-$(CONFIG_HID_ZYDACRON) += hid-zydacron.o 73obj-$(CONFIG_HID_ZYDACRON) += hid-zydacron.o
74obj-$(CONFIG_HID_WACOM) += hid-wacom.o 74obj-$(CONFIG_HID_WACOM) += hid-wacom.o
75obj-$(CONFIG_HID_WALTOP) += hid-waltop.o 75obj-$(CONFIG_HID_WALTOP) += hid-waltop.o
76obj-$(CONFIG_HID_WIIMOTE) += hid-wiimote.o
76 77
77obj-$(CONFIG_USB_HID) += usbhid/ 78obj-$(CONFIG_USB_HID) += usbhid/
78obj-$(CONFIG_USB_MOUSE) += usbhid/ 79obj-$(CONFIG_USB_MOUSE) += usbhid/
diff --git a/drivers/hid/hid-wiimote.c b/drivers/hid/hid-wiimote.c
new file mode 100644
index 000000000000..8a770e62a8b4
--- /dev/null
+++ b/drivers/hid/hid-wiimote.c
@@ -0,0 +1,32 @@
1/*
2 * HID driver for Nintendo Wiimote devices
3 * Copyright (c) 2011 David Herrmann
4 */
5
6/*
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 */
12
13#include <linux/module.h>
14
15#define WIIMOTE_VERSION "0.1"
16#define WIIMOTE_NAME "Nintendo Wii Remote"
17
18static int __init wiimote_init(void)
19{
20 return 0;
21}
22
23static void __exit wiimote_exit(void)
24{
25}
26
27module_init(wiimote_init);
28module_exit(wiimote_exit);
29MODULE_LICENSE("GPL");
30MODULE_AUTHOR("David Herrmann <dh.herrmann@gmail.com>");
31MODULE_DESCRIPTION(WIIMOTE_NAME " Device Driver");
32MODULE_VERSION(WIIMOTE_VERSION);