Skip to content

Commit

Permalink
HID: wacom: Initialize hid_data.inputmode to -1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Gerecke authored and Jiri Kosina committed Apr 5, 2016
1 parent c847a89 commit c6fa1ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hid/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6fa1ae

Please sign in to comment.