From patchwork Sun Feb 10 10:14:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolai Kondrashov X-Patchwork-Id: 10804691 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CFCF11515 for ; Sun, 10 Feb 2019 10:15:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFEDA29F45 for ; Sun, 10 Feb 2019 10:15:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B34E729F4A; Sun, 10 Feb 2019 10:15:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 4D17C29F46 for ; Sun, 10 Feb 2019 10:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726101AbfBJKPD (ORCPT ); Sun, 10 Feb 2019 05:15:03 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35992 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfBJKPD (ORCPT ); Sun, 10 Feb 2019 05:15:03 -0500 Received: by mail-lj1-f195.google.com with SMTP id g11-v6so6469227ljk.3 for ; Sun, 10 Feb 2019 02:15:02 -0800 (PST) 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=UZka0Ceu62doROs7JL+obx3DjqF2q9nllqsab4rHEC8=; b=ajKArLe9XNzFBSc20FFXbUUyN0MjQOZtdgxlWeksaUL0849etCEzb9U0ISdKyh+CpM UvzpoNtPQPvh8ov0JysNiONNu5u43TMoY7/mJERswhyu/er/cZiQMIWx7lH+E8mA9VTF 9JDwvLibZ1OafxbUaFuQf494gSMKSpTepAt3ZxCITH+U+aPK3dJK1i0nq//uKDTkN9VV 4vOd0Ts2eLtVzLBW0px86WhHiRHJYW1jFFKl9+tAQuLSYcZszIkNK8FA5We1dU3fwb0D m40AoNgHM1T75riisjWLF7xTNU9yqmdxGtCwLIMEyaw6KU5vFlRmHRb05xdLuGqNUfj/ S4zw== 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=UZka0Ceu62doROs7JL+obx3DjqF2q9nllqsab4rHEC8=; b=EAnygZB8j1Ii5LlKX9fofHAbFiuUPELDztdeSi3xmXSj5f5V8NzH/rBH4NKMRWFVnz +riTP1p5PCu0lkBbandGyaoUP3fdaaOy0uQGWoiCHxjHtFxRAYM4BxSWuHXmNezFi29h aheDtXiBArc41BWzhOrSI1fs3TYLj8wbRb41KnN4LBpIEZlAbAWeZOm+NR2z+Q3O5Plx 7etH33MkdJMJ2P4Bw6R5eK4eyF8kDXMo+emRbvnDdiJ2X7KClXTEwP2SFJG/h19YqStz +1LhFadX8Ydc7gkpHCEQWAQeIuliqPTegyP/NS6lkLjXMHnwzzvmeredeU3471/fbfWl WQMA== X-Gm-Message-State: AHQUAuaEBAjVV0YtC7nIWEySbEI0zR39TEQxQamuKY2dUOYvFM1mUl+S S4YMTgDYpbTLQyZTpmj+G6Y= X-Google-Smtp-Source: AHgI3IYjDuvAgkGQ87TRpy9oU9KVMu5NFfsjtzE1icjqCl9I0vy2uWS/nSEmTYYUOaTOPypDw6bnYQ== X-Received: by 2002:a2e:8e8e:: with SMTP id z14-v6mr13296175ljk.84.1549793701566; Sun, 10 Feb 2019 02:15:01 -0800 (PST) Received: from bard.ponomarevs.fi (88-112-122-53.elisa-laajakaista.fi. [88.112.122.53]) by smtp.gmail.com with ESMTPSA id l21-v6sm1472010ljj.48.2019.02.10.02.15.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 02:15:00 -0800 (PST) From: Nikolai Kondrashov To: Benjamin Tissoires Cc: Jiri Kosina , linux-input@vger.kernel.org, Nikolai Kondrashov Subject: [PATCH v2 14/23] HID: uclogic: Add support for XP-Pen Star G540 Date: Sun, 10 Feb 2019 12:14:00 +0200 Message-Id: <20190210101409.3511-15-spbnick@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190210101409.3511-1-spbnick@gmail.com> References: <20181227171625.11164-1-spbnick@gmail.com> <20190210101409.3511-1-spbnick@gmail.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 Add support for XP-Pen Star G540 to hid-uclogic. Signed-off-by: Nikolai Kondrashov --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-uclogic-core.c | 2 ++ drivers/hid/hid-uclogic-params.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 304476200c28..4da33b38606c 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1141,6 +1141,7 @@ #define USB_DEVICE_ID_YIYNOVA_TABLET 0x004d #define USB_VENDOR_ID_UGEE 0x28bd +#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540 0x0075 #define USB_DEVICE_ID_UGEE_TABLET_EX07S 0x0071 #define USB_VENDOR_ID_UNITEC 0x227d diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c index 33333a3e5ffe..42c93e3a8f1b 100644 --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -346,6 +346,8 @@ static const struct hid_device_id uclogic_devices[] = { USB_DEVICE_ID_UGTIZER_TABLET_GP0610) }, { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, USB_DEVICE_ID_UGEE_TABLET_EX07S) }, + { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, + USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540) }, { } }; MODULE_DEVICE_TABLE(hid, uclogic_devices); diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c index b22815cec06d..ac42f9117431 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -997,6 +997,8 @@ int uclogic_params_init(struct uclogic_params *params, break; case VID_PID(USB_VENDOR_ID_UGTIZER, USB_DEVICE_ID_UGTIZER_TABLET_GP0610): + case VID_PID(USB_VENDOR_ID_UGEE, + USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540): /* If this is the pen interface */ if (bInterfaceNumber == 1) { /* Probe v1 pen parameters */