From: ValdikSS Date: Sun, 13 Feb 2022 21:49:24 +0000 (+0100) Subject: HID: lenovo: Add note about different report numbers X-Git-Tag: v5.19-rc1~184^2~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c9b8fae88bc2f629926b7949dbc3672d4fbdad2;p=thirdparty%2Flinux.git HID: lenovo: Add note about different report numbers Signed-off-by: Florian Klink Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-lenovo.c b/drivers/hid/hid-lenovo.c index e9466ae8a9cb8..9dabd63232343 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;