HID: fixed missing inits in hid-cando.c
authorStephane Chatty <chatty@lii-enac.fr>
Fri, 16 Apr 2010 20:23:58 +0000 (22:23 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Apr 2010 11:20:13 +0000 (13:20 +0200)
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>
drivers/hid/hid-cando.c

index 4fc8f51..f9b2233 100644 (file)
@@ -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)