summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-cando.c
diff options
context:
space:
mode:
authorStephane Chatty <chatty@lii-enac.fr>2010-04-17 00:23:58 +0400
committerJiri Kosina <jkosina@suse.cz>2010-04-19 15:20:13 +0400
commit653efbb4b2c796a39c67501e4bce983a41278dfa (patch)
tree7e238944264df7cc76d9a232adb0cbdbf0a5db0c /drivers/hid/hid-cando.c
parent36213e1e40fb863e2e8ef607b2958504b48f6b8e (diff)
downloadlinux-653efbb4b2c796a39c67501e4bce983a41278dfa.tar.xz
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/hid-cando.c')
-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)