From patchwork Mon Jul 24 21:22:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jo=C3=A3o_Paulo_Rechi_Vita?= X-Patchwork-Id: 9860573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C2B8360385 for ; Mon, 24 Jul 2017 21:23:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B479A285B1 for ; Mon, 24 Jul 2017 21:23:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A721428606; Mon, 24 Jul 2017 21:23:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8A0A285B1 for ; Mon, 24 Jul 2017 21:22:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756083AbdGXVW6 (ORCPT ); Mon, 24 Jul 2017 17:22:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36124 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755332AbdGXVWq (ORCPT ); Mon, 24 Jul 2017 17:22:46 -0400 Received: by mail-pf0-f196.google.com with SMTP id 1so3280743pfi.3; Mon, 24 Jul 2017 14:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4T4A9ffl2qLytt1sqDUCl+mCyu7Xj1NLoeVX/g00XgI=; b=b5CZe+TVhAIxmX5zrRgjy5ZSTsv/MYMXZWiGeRzAinogHcv8VHwnIFP4AztJ/2jRPj bqs3OHZc+nRs6iRqC61Cf6uorYOz5NWIoVIMyCcNEhSTtK9UVV6rsEdMENyD0uudi+4q KDPajaUyyGxWsx0M/HPaoMNNXGgcB4NZBcJOEY9oxsctZCET5XbCww0clMrwrPgIgp44 hz/6JoxG2bicL2Ti4s4jgB+MTviwDlxUpreDLVF87Dt7qlEMvAiUemx3BM6LL86G7kGq 9tOCkqjV0W04rkRBVnXP3S4PigY+n+JAeQKTFIBE87ewU+ZiK8BQZWLTITVkV4J5WZOR RdXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4T4A9ffl2qLytt1sqDUCl+mCyu7Xj1NLoeVX/g00XgI=; b=axf69rdjoosyXDZ2guadSV23bnk2owLIrENsZDwBc6bJALI0HRYokM1uf15p4SzLjn 7v/rTo0vrWH/I9sJPvu2IlabQzGp81IHoPm3jtnrylKb8VBxo5RsL4u/YXoKLGLNF7Sx cncjhkKI9wmkgBhCS9zlBE8gXtbuJlDNjEipfm98jGLU2/GzIeriYFERJXSCzyta6jU8 bNngQoudcQuzKefc9uR/uRN+IQPE2dne1blXbJU4wDzKksueyo2cbhd4aJo04IfVJgE/ JZIzBLEmussGw4avvXfz0/Fc6Fq4kfiHKj1Kpg9maxv0W4/wTHvvdxlOBvU6FKGSM+ZM QIUw== X-Gm-Message-State: AIVw112iz8uYjyQPEJ5dSyUr84fY/dy4TM01G/ni2dBM9djtK3cdg3+F 4N8a8/boD97nrg== X-Received: by 10.99.147.19 with SMTP id b19mr17563955pge.67.1500931365493; Mon, 24 Jul 2017 14:22:45 -0700 (PDT) Received: from kiddo.hsd1.wa.comcast.net ([2601:602:9602:62b7:5fdd:14b4:b6ec:ebb6]) by smtp.gmail.com with ESMTPSA id h27sm22579409pfd.34.2017.07.24.14.22.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 14:22:44 -0700 (PDT) From: "=?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?=" X-Google-Original-From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= To: Hans de Goede , Jiri Kosina , Benjamin Tissoires Cc: linux@endlessm.com, =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] HID: multitouch: Support HID_GD_WIRELESS_RADIO_CTLS Date: Mon, 24 Jul 2017 14:22:24 -0700 Message-Id: <20170724212225.3426-2-jprvita@endlessm.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170724212225.3426-1-jprvita@endlessm.com> References: <20170724212225.3426-1-jprvita@endlessm.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some keyboard + touchpad devices have the Microsoft Win8 Wireless Radio Controls extensions Usage Page define in the touchpad report descriptor, so we need to support them in this driver. Signed-off-by: João Paulo Rechi Vita --- drivers/hid/hid-multitouch.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index aff20f4b6d97..152d33120a55 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -922,7 +922,8 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, field->application != HID_DG_PEN && field->application != HID_DG_TOUCHPAD && field->application != HID_GD_KEYBOARD && - field->application != HID_CP_CONSUMER_CONTROL) + field->application != HID_CP_CONSUMER_CONTROL && + field->application != HID_GD_WIRELESS_RADIO_CTLS) return -1; /* @@ -1133,6 +1134,9 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi) case HID_CP_CONSUMER_CONTROL: suffix = "Consumer Control"; break; + case HID_GD_WIRELESS_RADIO_CTLS: + suffix = "Wireless Radio Control"; + break; default: suffix = "UNKNOWN"; break;