Skip to content

Commit fb51b44

Browse files
David HerrmannJiri Kosina
authored andcommitted
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>
1 parent 4699d44 commit fb51b44

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎drivers/hid/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,12 @@ config HID_WACOM_POWER_SUPPLY
568568
Say Y here if you want to enable power supply status monitoring for
569569
Wacom Bluetooth devices.
570570

571+
config 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+
571577
config HID_ZEROPLUS
572578
tristate "Zeroplus based game controller support"
573579
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ obj-$(CONFIG_HID_ZEROPLUS) += hid-zpff.o
7373
obj-$(CONFIG_HID_ZYDACRON) += hid-zydacron.o
7474
obj-$(CONFIG_HID_WACOM) += hid-wacom.o
7575
obj-$(CONFIG_HID_WALTOP) += hid-waltop.o
76+
obj-$(CONFIG_HID_WIIMOTE) += hid-wiimote.o
7677

7778
obj-$(CONFIG_USB_HID) += usbhid/
7879
obj-$(CONFIG_USB_MOUSE) += usbhid/

‎drivers/hid/hid-wiimote.c‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
18+
static int __init wiimote_init(void)
19+
{
20+
return 0;
21+
}
22+
23+
static void __exit wiimote_exit(void)
24+
{
25+
}
26+
27+
module_init(wiimote_init);
28+
module_exit(wiimote_exit);
29+
MODULE_LICENSE("GPL");
30+
MODULE_AUTHOR("David Herrmann <dh.herrmann@gmail.com>");
31+
MODULE_DESCRIPTION(WIIMOTE_NAME " Device Driver");
32+
MODULE_VERSION(WIIMOTE_VERSION);

0 commit comments

Comments
 (0)