lkml.org 
[lkml]   [2012]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRE: [PATCH 1/5] HID: hid-multitouch: fix wrong protocol detection
    Date
    > -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.


    \
     
     \ /
      Last update: 2012-05-21 21:41    [W:0.051 / U:61.984 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site