From 8871a76c8669087236435465abe88fc6c4e4b05c Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 29 Sep 2010 21:37:03 +0200 Subject: Allow double report speed for simplicity On the joojoo, every contact change is its own packet, and collecting the concurrent set into a frame is currently made using the reported variable. However, being somewhat error prone, simply let the state be reported for every contact change instead, since the input core will removed duplicates anyways. Signed-off-by: Henrik Rydberg --- usr/src/dkms_source_tree/hid-egalax.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'usr/src/dkms_source_tree') diff --git a/usr/src/dkms_source_tree/hid-egalax.c b/usr/src/dkms_source_tree/hid-egalax.c index 17b00df..c060dfa 100644 --- a/usr/src/dkms_source_tree/hid-egalax.c +++ b/usr/src/dkms_source_tree/hid-egalax.c @@ -44,10 +44,9 @@ struct egalax_data { struct egalax_contact contact[MAX_SLOTS]; int down, valid; int x, y, z; - int slot, prev_slot; + int slot; int mask; int trkid; - int reported; }; static int egalax_input_mapping(struct hid_device *hdev, struct hid_input *hi, @@ -149,15 +148,6 @@ static void report_contact(struct egalax_data *td, struct input_dev *input) f->y = td->y; f->z = td->z; - if (td->prev_slot != td->slot) { - td->prev_slot = td->slot; - if (td->reported) { - td->reported = 0; - return; - } - } - td->reported = 1; - for (i = 0; i < MAX_SLOTS; i++) { f = &td->contact[i]; input_mt_slot(input, i); -- cgit v1.2.3