summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorValdikSS <iam@valdikss.org.ru>2022-02-14 00:49:24 +0300
committerJiri Kosina <jkosina@suse.cz>2022-05-02 18:49:44 +0300
commit5c9b8fae88bc2f629926b7949dbc3672d4fbdad2 (patch)
tree0662e981120388bd51b13b92b4922d9c9456a2d1 /drivers/hid
parenta0a5c2a696990520eba366fae67573306641b93b (diff)
downloadlinux-5c9b8fae88bc2f629926b7949dbc3672d4fbdad2.tar.xz
HID: lenovo: Add note about different report numbers
Signed-off-by: Florian Klink <flokli@flokli.de> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-lenovo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c
index e9466ae8a9cb..9dabd6323234 100644
--- 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;