Commit 653efbb4 authored by Stephane Chatty's avatar Stephane Chatty Committed by Jiri Kosina

HID: fixed missing inits in hid-cando.c

With flags non initialized, the single touch emulation has an erratic
behavior. Fixed this.
Signed-off-by: default avatarStephane Chatty <chatty@lii-enac.fr>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 36213e1e
......@@ -211,6 +211,9 @@ static int cando_probe(struct hid_device *hdev, const struct hid_device_id *id)
return -ENOMEM;
}
hid_set_drvdata(hdev, td);
td->first = false;
td->oldest = -1;
td->valid = false;
ret = hid_parse(hdev);
if (!ret)
......
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