mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Update README.md
This commit is contained in:
parent
e4dd09437c
commit
c2e1ecf8e1
1 changed files with 39 additions and 1 deletions
40
README.md
40
README.md
|
|
@ -1 +1,39 @@
|
|||
# hid-aksys
|
||||
# Vibrator driver for HHG device
|
||||
## How to merge the driver into kernel source tree
|
||||
|
||||
1. Copy \${this_project}/drivers/hid/hid-aksys.c into \${your_kernel_root}/drivers/hid/
|
||||
|
||||
2. Compare and merge \${this_project}/drivers/hid/hid-ids.h into \${your_kernel_root}/drivers/hid/hid-ids.h :
|
||||
Add the following code before the last line of this file
|
||||
|
||||
```c
|
||||
#define USB_VENDER_ID_AKSYS 0x1234
|
||||
#define USB_DEVICE_ID_AKSYS_QRD 0x1000
|
||||
```
|
||||
|
||||
3. Merge \${this_project}/drivers/hid/Kconfig into \${your_kernel_root}/drivers/hid/Kconfig :
|
||||
Add the following code before the last line of this file
|
||||
|
||||
config HID_AKSYS_QRD
|
||||
tristate "AKSys gamepad USB adapter support"
|
||||
depends on HID
|
||||
---help---
|
||||
Support for AKSys gamepad USB adapter
|
||||
|
||||
config AKSYS_QRD_FF
|
||||
bool "AKSys gamepad USB adapter force feedback support"
|
||||
depends on HID_AKSYS_QRD
|
||||
select INPUT_FF_MEMLESS
|
||||
---help---
|
||||
Say Y here if you have a AKSys gamepad USB adapter and want to
|
||||
enable force feedback support for it.
|
||||
|
||||
4. Merge \${this_project}/drivers/hid/Makefile into \${your_kernel_root}/drivers/hid/Makefile :
|
||||
Add the following code at the end of this file
|
||||
|
||||
obj-$(CONFIG_HID_AKSYS_QRD) += hid-aksys.o
|
||||
|
||||
5. Modify your kernel's default build configuration file. Add the following two lines:
|
||||
|
||||
CONFIG_HID_AKSYS_QRD=m
|
||||
CONFIG_AKSYS_QRD_FF=y
|
||||
|
|
|
|||
Loading…
Reference in a new issue