HID: fixed missing inits in hid-cando.c
authorStephane Chatty <[email protected]>
Fri, 16 Apr 2010 20:23:58 +0000 (22:23 +0200)
committerJiri Kosina <[email protected]>
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 <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-cando.c

index 4fc8f513dcc5d3dbe3c2f4e9742ca27ddcf3e8a4..f9b2233d9e4780b5211980479b668154dd11c5cb 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)