projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0a5c2a
)
HID: lenovo: Add note about different report numbers
author
ValdikSS
<iam@valdikss.org.ru>
Sun, 13 Feb 2022 21:49:24 +0000
(22:49 +0100)
committer
Jiri 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
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-lenovo.c
b/drivers/hid/hid-lenovo.c
index e9466ae8a9cb8ee460bd81c69edadbe7b8481af0..9dabd63232343eaca67cfa0961faf92612f33297 100644
(file)
--- a/
drivers/hid/hid-lenovo.c
+++ b/
drivers/hid/hid-lenovo.c
@@
-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;