diff options
author | Stephane Chatty <chatty@lii-enac.fr> | 2010-04-16 22:23:58 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-04-19 13:20:13 +0200 |
commit | 653efbb4b2c796a39c67501e4bce983a41278dfa (patch) | |
tree | 7e238944264df7cc76d9a232adb0cbdbf0a5db0c /drivers | |
parent | 36213e1e40fb863e2e8ef607b2958504b48f6b8e (diff) | |
download | linux-3.10-653efbb4b2c796a39c67501e4bce983a41278dfa.tar.gz linux-3.10-653efbb4b2c796a39c67501e4bce983a41278dfa.tar.bz2 linux-3.10-653efbb4b2c796a39c67501e4bce983a41278dfa.zip |
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')
-rw-r--r-- | drivers/hid/hid-cando.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-cando.c b/drivers/hid/hid-cando.c index 4fc8f513dcc..f9b2233d9e4 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) |