]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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)
Commit 5ae6e89 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

index 68a560957871c5a497e4e3d0229ca03dc359d8da..b338bbf8e6260b827d3ff06e2e00dd8de05ae897 100644 (file)
@@ -1817,6 +1817,8 @@ static int wacom_probe(struct hid_device *hdev,
                goto fail_type;
        }
 
+       wacom_wac->hid_data.inputmode = -1;
+
        wacom->usbdev = dev;
        wacom->intf = intf;
        mutex_init(&wacom->lock);