]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Initialize hid_data.inputmode to -1
authorJason Gerecke <killertofu@gmail.com>
Mon, 4 Apr 2016 18:26:51 +0000 (11:26 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 5 Apr 2016 15:20:31 +0000 (17:20 +0200)
commita46059c4d7ddb12950f7751ba573af0ca7495c04
treec36c17c860f2f60358f9b71e46205dddd23dd40e
parentc0f9a1bef709974bffed82a2764a053ac451cf44
HID: wacom: Initialize hid_data.inputmode to -1

Commit 0c7d263 introduced hid_data.inputmode with a comment that it
would have the value -1 if undefined, but then forgot to actually
perform the initialization. Although this doesn't appear to have
caused any problems in practice, it should still be remedied.

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