diff mbox

Fixed bug in single-touch emulation on the Stantum panel

Message ID 20100206141912.71BA89520A@smtp.lii-enac.fr
State New, archived
Headers show

Commit Message

Stephane Chatty Feb. 6, 2010, 2:19 p.m. UTC
None
diff mbox

Patch

diff -rupN a/drivers/hid/hid-stantum.c b/drivers/hid/hid-stantum.c
--- a/drivers/hid/hid-stantum.c	2010-02-06 14:59:57.000000000 +0100
+++ b/drivers/hid/hid-stantum.c	2010-02-06 15:00:36.000000000 +0100
@@ -16,7 +16,7 @@ 
 #include <linux/hid.h>
 #include <linux/module.h>
 
-MODULE_VERSION("1.00");
+MODULE_VERSION("1.01");
 MODULE_AUTHOR("Stephane Chatty <chatty@enac.fr>");
 MODULE_DESCRIPTION("Stantum HID multitouch panels");
 MODULE_LICENSE("GPL");
@@ -147,7 +147,6 @@  static void stantum_filter_event(struct 
 
 	input_mt_sync(input);
 	sd->valid = false;
-	sd->first = false;
 
 	/* touchscreen emulation */
 	if (sd->first) {
@@ -158,6 +157,7 @@  static void stantum_filter_event(struct 
 		input_event(input, EV_ABS, ABS_X, sd->x);
 		input_event(input, EV_ABS, ABS_Y, sd->y);
 	}
+	sd->first = false;
 }