projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f6f431
)
HID: autocentering support for Logitech Force 3D Pro
author
Sergey Belyashov
<Sergey.Belyashov@gmail.com>
Fri, 15 May 2009 14:05:57 +0000
(16:05 +0200)
committer
Jiri Kosina
<jkosina@suse.cz>
Fri, 15 May 2009 14:05:57 +0000
(16:05 +0200)
This patch adds autocentering support for Logitech Force 3D Pro.
Signed-off-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lgff.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/hid-lgff.c
b/drivers/hid/hid-lgff.c
index 9735be6ee4ffbfb3a7cbe374130f04c477ea9874..56099709581cc689ec88210672ca30a7982cf833 100644
(file)
--- a/
drivers/hid/hid-lgff.c
+++ b/
drivers/hid/hid-lgff.c
@@
-50,6
+50,12
@@
static const signed short ff_joystick[] = {
-1
};
+static const signed short ff_joystick_ac[] = {
+ FF_CONSTANT,
+ FF_AUTOCENTER,
+ -1
+};
+
static const signed short ff_wheel[] = {
FF_CONSTANT,
FF_AUTOCENTER,
@@
-60,7
+66,7
@@
static const struct dev_type devices[] = {
{ 0x046d, 0xc211, ff_rumble },
{ 0x046d, 0xc219, ff_rumble },
{ 0x046d, 0xc283, ff_joystick },
- { 0x046d, 0xc286, ff_joystick },
+ { 0x046d, 0xc286, ff_joystick
_ac
},
{ 0x046d, 0xc294, ff_wheel },
{ 0x046d, 0xc295, ff_joystick },
{ 0x046d, 0xca03, ff_wheel },