Skip to content

Commit

Permalink
HID: fixed missing inits in hid-cando.c
Browse files Browse the repository at this point in the history
With flags non initialized, the single touch emulation has an erratic
behavior. Fixed this.

Signed-off-by: Stephane Chatty <chatty@lii-enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Stephane Chatty authored and Jiri Kosina committed Apr 19, 2010
1 parent 36213e1 commit 653efbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/hid/hid-cando.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 653efbb

Please sign in to comment.