From patchwork Sun Feb 10 10:14:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolai Kondrashov X-Patchwork-Id: 10804693 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 057121515 for ; Sun, 10 Feb 2019 10:15:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB1FB29F46 for ; Sun, 10 Feb 2019 10:15:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEF8029F45; Sun, 10 Feb 2019 10:15:05 +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 874CB29F45 for ; Sun, 10 Feb 2019 10:15:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726109AbfBJKPF (ORCPT ); Sun, 10 Feb 2019 05:15:05 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:34174 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfBJKPE (ORCPT ); Sun, 10 Feb 2019 05:15:04 -0500 Received: by mail-lj1-f195.google.com with SMTP id v14-v6so6480683ljv.1 for ; Sun, 10 Feb 2019 02:15:03 -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=ANcwBb9sRRjfw8xQaNfae/qhRZbQUN0VZMXk/i9XzHU=; b=PWNfGYXLcvpl270t8f2SccpkeYsRyJXzEPAT8XloOpmeCKLw4/ow+Y2L0IGlmMNmDK LSZmAR8i3LTbARFqkHjwCxxeRUEYIn+GHZ0/+s5vO5WQww3QgJFZ46mahfxEsffD7yOl zfmfplgLFZpvU4q6Qp15S0XBPzze1htUP5DjrFT8tAdQVdvHwqSUtZ1J7bXw3Y2Y38kR DPSb59QoodQ9229A5aIYuOFkbYTGiW4kEaKcr6Mld3aHef5ocZ08Vw/rsF2+0GsdPC3g x/hCp9cThqktvI5mtqZiiZTc6nUG5NmQTUWecaBvo/L0RiU5t3Xyja+VJbQ87c+q0qJu aiCQ== 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=ANcwBb9sRRjfw8xQaNfae/qhRZbQUN0VZMXk/i9XzHU=; b=fVOVm9yN7dXvPFN4tck3Dwcx72Ihp9+akBo7TalfX9z2KYAIE3VylwO2HsDfeYwjPV Klv7BUtqLc/NAXN/TQEA7B3hP39avzTeI4EIjYca7q0F8T5IMF+lcikAh9c/Y9v8FmrQ H6oP3iU68CY/jK329cW/CggPFJbtkHwO8vukfJEFVm5LaCu5vMyVOyLskcmYYWmQZLzX jwPwf9tNJigZxNJVhhVf/Fi9KdCz5dw/8L5SsglwmSbP7khqoeRB9irpl8oVu20mEEtb mobX5JKxGfFBqMn2eXO7M8AvZ9Xn82vD+0QaJXhFqU2Gwsp1LVQWyJNx0IogaD2YqxrN 8DNQ== X-Gm-Message-State: AHQUAuZ+9UwU9QjFmZ/l61nFEkGZ5Myqp89BYhLQbIkBgoP9wFcT+P+0 zGDEIN3gjw5ZXQRcKr5e/D0= X-Google-Smtp-Source: AHgI3IZ5MwTg/UnA0ny0yZNVwppUI55Ka4O3kmlz9BstsMqmKhB9zMVT7WGu08qosoDCyBFoWJ0tZA== X-Received: by 2002:a2e:7310:: with SMTP id o16-v6mr7256520ljc.188.1549793702748; Sun, 10 Feb 2019 02:15:02 -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.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 02:15:01 -0800 (PST) From: Nikolai Kondrashov To: Benjamin Tissoires Cc: Jiri Kosina , linux-input@vger.kernel.org, Nikolai Kondrashov Subject: [PATCH v2 15/23] HID: uclogic: Add support for XP-Pen Star G640 Date: Sun, 10 Feb 2019 12:14:01 +0200 Message-Id: <20190210101409.3511-16-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 G640 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 4da33b38606c..cadc8d4d6a4d 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1142,6 +1142,7 @@ #define USB_VENDOR_ID_UGEE 0x28bd #define USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540 0x0075 +#define USB_DEVICE_ID_UGEE_XPPEN_TABLET_G640 0x0094 #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 42c93e3a8f1b..5fdd8919902d 100644 --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -348,6 +348,8 @@ static const struct hid_device_id uclogic_devices[] = { USB_DEVICE_ID_UGEE_TABLET_EX07S) }, { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540) }, + { HID_USB_DEVICE(USB_VENDOR_ID_UGEE, + USB_DEVICE_ID_UGEE_XPPEN_TABLET_G640) }, { } }; MODULE_DEVICE_TABLE(hid, uclogic_devices); diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c index ac42f9117431..709eeb15e7de 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -999,6 +999,8 @@ int uclogic_params_init(struct uclogic_params *params, USB_DEVICE_ID_UGTIZER_TABLET_GP0610): case VID_PID(USB_VENDOR_ID_UGEE, USB_DEVICE_ID_UGEE_XPPEN_TABLET_G540): + case VID_PID(USB_VENDOR_ID_UGEE, + USB_DEVICE_ID_UGEE_XPPEN_TABLET_G640): /* If this is the pen interface */ if (bInterfaceNumber == 1) { /* Probe v1 pen parameters */