From patchwork Sun Feb 13 21:49:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Klink X-Patchwork-Id: 12744703 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14C4EC433F5 for ; Sun, 13 Feb 2022 21:56:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238478AbiBMV4l (ORCPT ); Sun, 13 Feb 2022 16:56:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238473AbiBMV4k (ORCPT ); Sun, 13 Feb 2022 16:56:40 -0500 X-Greylist: delayed 401 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 13 Feb 2022 13:56:31 PST Received: from zeus.flokli.de (mail.zeus.flokli.de [88.198.15.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0CA54192; Sun, 13 Feb 2022 13:56:31 -0800 (PST) Received: from localhost (ip-178-200-100-055.um45.pools.vodafone-ip.de [178.200.100.55]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: flokli@flokli.de) by zeus.flokli.de (Postfix) with ESMTPSA id 1F91E1299FC4; Sun, 13 Feb 2022 21:50:00 +0000 (UTC) From: Florian Klink To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, ValdikSS , Florian Klink Subject: [PATCH v4 3/3] HID: lenovo: Add note about different report numbers Date: Sun, 13 Feb 2022 22:49:24 +0100 Message-Id: <20220213214924.32407-4-flokli@flokli.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220213214924.32407-1-flokli@flokli.de> References: <20220213214924.32407-1-flokli@flokli.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: ValdikSS Signed-off-by: Florian Klink --- drivers/hid/hid-lenovo.c | 5 +++++ 1 file changed, 5 insertions(+) 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;