Commit c6fa1aeb authored by Jason Gerecke's avatar Jason Gerecke Committed by Jiri Kosina

HID: wacom: Initialize hid_data.inputmode to -1

Commit 5ae6e89f 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: default avatarJason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c847a89a
...@@ -1817,6 +1817,8 @@ static int wacom_probe(struct hid_device *hdev, ...@@ -1817,6 +1817,8 @@ static int wacom_probe(struct hid_device *hdev,
goto fail_type; goto fail_type;
} }
wacom_wac->hid_data.inputmode = -1;
wacom->usbdev = dev; wacom->usbdev = dev;
wacom->intf = intf; wacom->intf = intf;
mutex_init(&wacom->lock); mutex_init(&wacom->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment