aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorStephane Chatty <chatty@lii-enac.fr>2010-04-16 16:23:58 -0400
committerJiri Kosina <jkosina@suse.cz>2010-04-19 07:20:13 -0400
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)
211 return -ENOMEM; 211 return -ENOMEM;
212 } 212 }
213 hid_set_drvdata(hdev, td); 213 hid_set_drvdata(hdev, td);
214 td->first = false;
215 td->oldest = -1;
216 td->valid = false;
214 217
215 ret = hid_parse(hdev); 218 ret = hid_parse(hdev);
216 if (!ret) 219 if (!ret)