summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorStephane Chatty <chatty@lii-enac.fr>2010-04-16 22:23:58 +0200
committerJiri Kosina <jkosina@suse.cz>2010-04-19 13:20:13 +0200
commit653efbb4b2c796a39c67501e4bce983a41278dfa (patch)
tree7e238944264df7cc76d9a232adb0cbdbf0a5db0c /drivers/hid
parent36213e1e40fb863e2e8ef607b2958504b48f6b8e (diff)
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: Stephane Chatty <chatty@lii-enac.fr> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-cando.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-cando.c b/drivers/hid/hid-cando.c
index 4fc8f513dcc5..f9b2233d9e47 100644
--- a/drivers/hid/hid-cando.c
+++ b/drivers/hid/hid-cando.c
@@ -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)