Skip to content

Commit

Permalink
HID: ntrig: explain firmware quirk
Browse files Browse the repository at this point in the history
Commit 6549981 ("HID: fix N-trig touch panel with recent firmware")
adds a quirk that is needed for devices with more recent firmware so that
they become operational.

As it's not directly obvious from the code why is it needed, a comment
is worthwile.

Signed-off-by: Jiri Kosina <[email protected]>
  • Loading branch information
Jiri Kosina committed Apr 7, 2010
1 parent 6549981 commit c085855
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/hid/hid-ntrig.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ static int ntrig_probe(struct hid_device *hdev, const struct hid_device_id *id)
}
}

report = hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0x0a];
/* This is needed for devices with more recent firmware versions */
report = hdev->report_enum[HID_FEATURE_REPORT].report_id_hash[0x0a];
if (report)
usbhid_submit_report(hdev, report, USB_DIR_OUT);

Expand Down

0 comments on commit c085855

Please sign in to comment.