[PATCH] Fixed missing inits in hid-cando.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With flags non initialized, the single touch emulation has an erratic
behavior. Fixed this.

Signed-off-by: Stephane Chatty


diff -rupN a/drivers/hid/hid-cando.c b/drivers/hid/hid-cando.c
--- a/drivers/hid/hid-cando.c	2010-04-16 22:04:20.000000000 +0200
+++ b/drivers/hid/hid-cando.c	2010-04-16 22:02:38.000000000 +0200
@@ -211,6 +211,9 @@ static int cando_probe(struct hid_device
 		return -ENOMEM;
 	}
 	hid_set_drvdata(hdev, td);
+	td->first = false;
+	td->oldest = -1;
+	td->valid = false;
 
 	ret = hid_parse(hdev);
 	if (!ret)
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux