]> git.baikalelectronics.ru Git - kernel.git/commit
HID:hid-lg4ff: Correct Auto-center strength for wheels other than MOMO and MOMO2
authorSimon Wood <simon@mungewell.org>
Wed, 6 Nov 2013 19:30:44 +0000 (12:30 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 8 Nov 2013 13:12:08 +0000 (14:12 +0100)
commitedd26fe4ccd3f3079a0f410ae160726e59da0974
tree2aa6f13f66d7c090f430b48cf00b00083d51e035
parent7dcc013f1ccc32fa37400c5ee26d23b0b4a26ec5
HID:hid-lg4ff: Correct Auto-center strength for wheels other than MOMO and MOMO2

The MOMO and MOMO2 wheels have a slightly different autocenter command,
and accept values in the range 0..F (rather than 0..7 for the other wheels).

This patch uses the product ID to determine how to compute the strength.

Signed-off-by: Simon Wood <simon@mungewell.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lg4ff.c