RE: [PATCH 1/5] HID: hid-multitouch: fix wrong protocol detection
From: Drews, Paul
Date: Mon May 21 2012 - 15:01:37 EST
> -static void set_last_slot_field(struct hid_usage *usage, struct mt_device *td,
> +static void mt_store_field(struct hid_usage *usage, struct mt_device *td,
> struct hid_input *hi)
> {
> - if (!test_bit(usage->hid, hi->input->absbit))
> - td->last_slot_field = usage->hid;
> + struct mt_fields *f = td->fields;
> +
> + if (f->length >= HID_MAX_FIELDS)
> + return;
> +
> + f->usages[f->length++] = usage->hid;
> }
The "hi" formal-parameter is no longer used, can go away.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/