diff options
author | Stephane Chatty <chatty@enac.fr> | 2010-02-10 06:09:17 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-02-10 06:09:17 -0500 |
commit | b32758c7216f337044ceb6dcaa754b8eda95a59f (patch) | |
tree | e7cfceb9ded6578ed935bea845592d9185663bf0 /drivers/hid | |
parent | eabe5c90580a065aed8ce6a5ba53eb443d317fae (diff) |
HID: fixed bug in single-touch emulation on the stantum panel
Fixed stupid copy-paste bug in touchscreen emulation for the Stantum multitouch
panel: a flag was reset just before being tested.
Signed-off-by: Stephane Chatty <chatty@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-stantum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-stantum.c b/drivers/hid/hid-stantum.c index add965dab932..1b7b1659e7bb 100644 --- a/drivers/hid/hid-stantum.c +++ b/drivers/hid/hid-stantum.c | |||
@@ -147,7 +147,6 @@ static void stantum_filter_event(struct stantum_data *sd, | |||
147 | 147 | ||
148 | input_mt_sync(input); | 148 | input_mt_sync(input); |
149 | sd->valid = false; | 149 | sd->valid = false; |
150 | sd->first = false; | ||
151 | 150 | ||
152 | /* touchscreen emulation */ | 151 | /* touchscreen emulation */ |
153 | if (sd->first) { | 152 | if (sd->first) { |
@@ -158,6 +157,7 @@ static void stantum_filter_event(struct stantum_data *sd, | |||
158 | input_event(input, EV_ABS, ABS_X, sd->x); | 157 | input_event(input, EV_ABS, ABS_X, sd->x); |
159 | input_event(input, EV_ABS, ABS_Y, sd->y); | 158 | input_event(input, EV_ABS, ABS_Y, sd->y); |
160 | } | 159 | } |
160 | sd->first = false; | ||
161 | } | 161 | } |
162 | 162 | ||
163 | 163 | ||