Skip to content

Commit

Permalink
HID: lenovo: Add note about different report numbers
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Klink <flokli@flokli.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
ValdikSS authored and Jiri Kosina committed May 2, 2022
1 parent a0a5c2a commit 5c9b8fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/hid/hid-lenovo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c9b8fa

Please sign in to comment.