Skip to content

Commit

Permalink
backport uhid driver from linux 3.8
Browse files Browse the repository at this point in the history
the userspace HID driver is needed by the JB bluetooth stack to process input
from bluetooth keyboards.
  • Loading branch information
plaguedbypenguins committed Mar 16, 2013
1 parent 58c106f commit 79a0341
Show file tree
Hide file tree
Showing 7 changed files with 703 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/configs/cyanogen_blade_defconfig
Expand Up @@ -1762,6 +1762,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
# CONFIG_HIDRAW is not set
CONFIG_UHID=y
# CONFIG_HID_PID is not set

#
Expand Down
1 change: 1 addition & 0 deletions arch/arm/configs/cyanogen_v9_defconfig
Expand Up @@ -1765,6 +1765,7 @@ CONFIG_SND_SOC_I2C_AND_SPI=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
# CONFIG_HIDRAW is not set
CONFIG_UHID=y
# CONFIG_HID_PID is not set

#
Expand Down
21 changes: 21 additions & 0 deletions drivers/hid/Kconfig
Expand Up @@ -50,6 +50,27 @@ config HIDRAW

If unsure, say Y.

config UHID
tristate "User-space I/O driver support for HID subsystem"
depends on HID
default n
---help---
Say Y here if you want to provide HID I/O Drivers from user-space.
This allows to write I/O drivers in user-space and feed the data from
the device into the kernel. The kernel parses the HID reports, loads the
corresponding HID Device Driver or provides input devices on top of your
user-space device.

This driver cannot be used to parse HID-reports in user-space and write
special HID-drivers. You should use hidraw for that.
Instead, this driver allows to write the transport-layer driver in
user-space like USB-HID and Bluetooth-HID do in kernel-space.

If unsure, say N.

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

source "drivers/hid/usbhid/Kconfig"

menu "Special HID drivers"
Expand Down
1 change: 1 addition & 0 deletions drivers/hid/Makefile
Expand Up @@ -8,6 +8,7 @@ ifdef CONFIG_DEBUG_FS
endif

obj-$(CONFIG_HID) += hid.o
obj-$(CONFIG_UHID) += uhid.o

hid-$(CONFIG_HIDRAW) += hidraw.o

Expand Down

0 comments on commit 79a0341

Please sign in to comment.