HID: lenovo: Add note about different report numbers
authorValdikSS <iam@valdikss.org.ru>
Sun, 13 Feb 2022 21:49:24 +0000 (22:49 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 2 May 2022 15:49:44 +0000 (17:49 +0200)
Signed-off-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c

index e9466ae..9dabd63 100644 (file)
@@ -487,6 +487,11 @@ static int lenovo_send_cmd_cptkbd(struct hid_device *hdev,
        if (!buf)
                return -ENOMEM;
 
+       /*
+        * Feature report 0x13 is used for USB,
+        * output report 0x18 is used for Bluetooth.
+        * buf[0] is ignored by hid_hw_raw_request.
+        */
        buf[0] = 0x18;
        buf[1] = byte2;
        buf[2] = byte3;