]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: Fix TransducerSerialNumber implementation
authorJason Gerecke <killertofu@gmail.com>
Tue, 23 Sep 2014 18:09:28 +0000 (11:09 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 29 Oct 2014 09:59:06 +0000 (10:59 +0100)
commitff6241de1a77e2734fa561c7a33d4d91b083503a
treefff5a63737ebe850d74b4febb05fc0ae91eb50d5
parentdb968a6791c2a67ae4a302be230e8ffcbd77c857
HID: input: Fix TransducerSerialNumber implementation

The commit which introduced TransducerSerialNumber (539e17c) is missing
two crucial implementation details. Firstly, the commit does not set the
type/code/bit/max fields as expected later down the code which can cause
the driver to crash when a tablet with this usage is connected. Secondly,
the call to 'set_bit' causes MSC_PULSELED to be sent instead of the
expected MSC_SERIAL. This commit addreses both issues.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c