diff options
author | Jason Gerecke <killertofu@gmail.com> | 2016-04-04 14:26:51 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-04-05 11:20:31 -0400 |
commit | c6fa1aeba02111ed8676494ac7cd453a03efef3c (patch) | |
tree | c36c17c860f2f60358f9b71e46205dddd23dd40e | |
parent | c847a89a871e1ea21d45120c3045c9b443e258f5 (diff) |
HID: wacom: Initialize hid_data.inputmode to -1
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>
-rw-r--r-- | drivers/hid/wacom_sys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index 68a560957871..b338bbf8e626 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c | |||
@@ -1817,6 +1817,8 @@ static int wacom_probe(struct hid_device *hdev, | |||
1817 | goto fail_type; | 1817 | goto fail_type; |
1818 | } | 1818 | } |
1819 | 1819 | ||
1820 | wacom_wac->hid_data.inputmode = -1; | ||
1821 | |||
1820 | wacom->usbdev = dev; | 1822 | wacom->usbdev = dev; |
1821 | wacom->intf = intf; | 1823 | wacom->intf = intf; |
1822 | mutex_init(&wacom->lock); | 1824 | mutex_init(&wacom->lock); |