usb: HID Simple Driver Interface 0.3.1 (Kconfig and Makefile)
PATCH 1/1 usb: HID Simple Driver Interface 0.3.1 (Kconfig and Makefile)
For simple, I merge the changes with two drivers. you can use two drivers as example.
It also can apply on 2.6.17.6 and 2.6.17.8 at least.
PS: I have not Subscribe linux-usb-devel maillist, please CC me your reply, thanks.
Signed-off-by Liyu <[email protected]>
drivers/usb/input/Kconfig renamed from drivers/usb/input.orig/Kconfig +28 -0
@@ -326,3 +326,31 @@ config USB_APPLETOUCH To compile this driver as a module, choose M here: the module will be called appletouch. + +config HID_SIMPLE + bool "HID simple driver interface" + depends on USB_HIDINPUT + help + This simple interface let the writing HID driver more easier. Moreover, + this allow you write force-feedback driver without touch HID input + implementation code. Also, it can be used as input filter. + +config HID_SIMPLE_MSNEK4K + tristate "Microsoft Natural Ergonomic Keyboard 4000 Driver" + depends on HID_SIMPLE + help + Microsoft Natural Ergonomic Keyboard 4000 extend keys support. These + may not work without change user space configration, e.g, XKB conf- + iguration in X. + +config HID_SIMPLE_FF + bool "HID simple driver interface force feedback support" + depends on HID_SIMPLE && !HID_FF + help + This feature can not be compatible with "Force feedback support" (HID_FF). + +config HID_SIMPLE_FF_BTP2118 + tristate "Betop 2118 joystick force feedback support" + depends on HID_SIMPLE_FF + help + This can enable Betop 2118 joystick force feedback feature.
drivers/usb/input/Makefile renamed from drivers/usb/input.orig/Makefile +2 -0
@@ -44,6 +44,8 @@ obj-$(CONFIG_USB_ACECAD) += acecad.o obj-$(CONFIG_USB_YEALINK) += yealink.o obj-$(CONFIG_USB_XPAD) += xpad.o obj-$(CONFIG_USB_APPLETOUCH) += appletouch.o +obj-$(CONFIG_HID_SIMPLE_MSNEK4K) += usbnek4k.o +obj-$(CONFIG_HID_SIMPLE_FF_BTP2118) += btp2118.o ifeq ($(CONFIG_USB_DEBUG),y) EXTRA_CFLAGS += -DDEBUG