HID: ntrig: explain firmware quirk
authorJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2010 10:10:29 +0000 (12:10 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 7 Apr 2010 10:10:29 +0000 (12:10 +0200)
Commit 6549981bc54777c ("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 <jkosina@suse.cz>
drivers/hid/hid-ntrig.c

index 513db0a47c4a5fa2e3a18bee0594b2db55f8353d..a418f9e19ce75bd06759b7f0ad5262ce160175d2 100644 (file)
@@ -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);