From patchwork Sat Mar 25 06:04:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaolei Yu X-Patchwork-Id: 9644447 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 567F260327 for ; Sat, 25 Mar 2017 06:05:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 464D4269A3 for ; Sat, 25 Mar 2017 06:05:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B61A26E16; Sat, 25 Mar 2017 06:05:18 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 D7EFC269A3 for ; Sat, 25 Mar 2017 06:05:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967140AbdCYGFR (ORCPT ); Sat, 25 Mar 2017 02:05:17 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:34244 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966954AbdCYGFQ (ORCPT ); Sat, 25 Mar 2017 02:05:16 -0400 Received: by mail-pg0-f67.google.com with SMTP id w20so1728461pgc.1 for ; Fri, 24 Mar 2017 23:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=qgyAeIkRg0TD9EH2tjWC2mM7GTBnU/hprlo6TN+9J8A=; b=cqZpNSOkRGdk4sL+x8k0bs7AGH26qaaxPR/FqXM//umCqy6OFoNj5xCDm2eM+4bt63 W5gs2i4HyPAdyYNJwE+0ZQdIJ2bCCfp1Hn8dDGBmYiWb7hJWMJK5zTHxeXMR5+otBTPK pK4uF0f1nLluYezQttbx/oDqmMce76KW1QzYwIMDCSTpKpraYgHRIxx34i0+mYBleBY9 DI52fcT72gWj5AmHgCFZDhBSUTGyrF2LsoVjqEATssQ4ou2c2EP8JbAndnCjVyJCeV9F Q4HKejFpxx7OP/JbQC8alTbhCWk6tcoFpJp6Ofu0H9pa0cHsqV2PWd7Hp2XnQJxlkU2p 8u5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=qgyAeIkRg0TD9EH2tjWC2mM7GTBnU/hprlo6TN+9J8A=; b=KxcZIuA9+rM22QEGHj0KcmunGfFplRsfw0B9Phn5etb7DUdMJVok9qJk1UuaGx7Bi+ NLX32K15vrQLtAFBASah9E/+OKCu8Ck/q35Y5oDIe5/9+0TB3FDQ4cuOvFCd8C5IHCYa AIJ5OJQNVyAHuRkd181x1JgDymA3EZZS5Vb3HY8p0AiCHiKeTTcTMklxcC4JsCE1zRXR Ak5fBPDC4hE38/fJZtfJRidMAWDa8FZigOyS65J+06OpPGQXysgbRTn9Jl+h28ySaZs7 WiR29C+yR2bWqezgNBfxDkVYEYjL/V9xFNVT8E6EwlqRkv5VicCQvvYy7o6df8L/W4v4 fG0Q== X-Gm-Message-State: AFeK/H2UKs0NY9Fj/0Jo7jFes7fO1c+KBi7Q/mQqsnxBPZ7bACWY/Rq25piF2DrmUGvhLA== X-Received: by 10.98.50.5 with SMTP id y5mr13490515pfy.169.1490421910298; Fri, 24 Mar 2017 23:05:10 -0700 (PDT) Received: from ?IPv6:2001:470:1f05:aa5:f5a4:358c:424b:5320? ([2001:470:1f05:aa5:f5a4:358c:424b:5320]) by smtp.gmail.com with ESMTPSA id e70sm7931030pfh.84.2017.03.24.23.05.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 23:05:09 -0700 (PDT) To: benjamin.tissoires@redhat.com, jikos@kernel.org, linux-input@vger.kernel.org From: Xiaolei Yu Subject: [PATCH] HID: add two missing usages for digitizer Message-ID: Date: Sat, 25 Mar 2017 14:04:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 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 They are part of HUTRR34 for multi-touch digitizers: 0x0E Device configuration CA 16.7 0x23 Device settings CL 16.7 Signed-off-by: Xiaolei Yu --- drivers/hid/hid-debug.c | 2 ++ include/linux/hid.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index c6c9c51c806f..5271db593478 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -140,9 +140,11 @@ static const struct hid_usage_entry hid_usage_table[] = { {0, 0x03, "LightPen"}, {0, 0x04, "TouchScreen"}, {0, 0x05, "TouchPad"}, + {0, 0x0e, "DeviceConfiguration"}, {0, 0x20, "Stylus"}, {0, 0x21, "Puck"}, {0, 0x22, "Finger"}, + {0, 0x23, "DeviceSettings"}, {0, 0x30, "TipPressure"}, {0, 0x31, "BarrelPressure"}, {0, 0x32, "InRange"}, diff --git a/include/linux/hid.h b/include/linux/hid.h index 28f38e2b8f30..536f11fd21d5 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -268,6 +268,8 @@ struct hid_item { #define HID_CP_APPLICATIONLAUNCHBUTTONS 0x000c0180 #define HID_CP_GENERICGUIAPPLICATIONCONTROLS 0x000c0200 +#define HID_DG_DEVICECONFIG 0x000d000e +#define HID_DG_DEVICESETTINGS 0x000d0023 #define HID_DG_CONFIDENCE 0x000d0047 #define HID_DG_WIDTH 0x000d0048 #define HID_DG_HEIGHT 0x000d0049