From patchwork Sun Feb 10 10:13:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolai Kondrashov X-Patchwork-Id: 10804683 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 78D9E13B4 for ; Sun, 10 Feb 2019 10:15:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B0EB29F46 for ; Sun, 10 Feb 2019 10:15:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EC6F29F4B; Sun, 10 Feb 2019 10:15: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=-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 06D5529F46 for ; Sun, 10 Feb 2019 10:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726005AbfBJKO7 (ORCPT ); Sun, 10 Feb 2019 05:14:59 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38763 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfBJKO7 (ORCPT ); Sun, 10 Feb 2019 05:14:59 -0500 Received: by mail-lj1-f194.google.com with SMTP id c19-v6so6431876lja.5 for ; Sun, 10 Feb 2019 02:14:58 -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=Cty+WhSSS8R2xVu1lIL7Hd04HXzznx+i1a+mm8Ay504=; b=C7WnYWYl5ARVAnMN41z2kbLPj1DvDlqxWq1x4BMQZFHDSgQQoeW4GJ38ZrI3ZY5lCR TcTahrkoXENZwsvDEqy2iO864vcTpaHEKbiMhpfJ15LldA8vPQcmqytzG4uqoGgAIAD2 k1wKPVF7StL3dBrBccYtpdSFPdzsGzqGIIbwW2wLXTlLCKXVwiAxGc/WgCnHfUhr/LlV V6nHJ7u43+o6Pjor2GBw2WKj3FPwbIy1zM7Wh0MZCB1FDgmcVc6RqgktAW3lv1SxRfqI /URSHpRhYGYLXDi3DE2bvpq0wfuz7gDKqkNZsU9+NVaFLYv5Bb4JPjPH1UTMM0f0+7Yy gStQ== 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=Cty+WhSSS8R2xVu1lIL7Hd04HXzznx+i1a+mm8Ay504=; b=bZRWXzCa4qOVpVd9AkS69JqNVEJzz3GEYAKCclGZclWZoo06QzA1628+Pz3eSwAE6r kwc47viGyv3zR3xvg0b8/hZfAAgv3JUA9JeL0lhp7CjELkMu4Hu8uLOyW/qrsdXHvYpr Sf5heStgvsTB3vQQH/0ZgFRMiO7nWism3kGHMXKT7WfpMWiLqxKuAjcuveK6PjGUQhZf Zrena3h4PDe09bXUHOskfhDbs2jZW3ZxmZ0Rk3jbGCVuLEJj9sPJfAVA8g5V8z3j7jZ2 x+oecyCHBcdZViJPznVIuBmwbKlxHFbxH7QQZIZleB6gA+sIimvLkS6CLU7Qsk9ki2D0 3lqg== X-Gm-Message-State: AHQUAuZ6jE36b+AyoGJ4psPeHHvjR9Nmpny+MdnFN2D/QjzwFL3ZoPCZ YzLGLwvOjjaxELSTiqkoR9k= X-Google-Smtp-Source: AHgI3IacONkl2p8v9xHs2fvuid0Zq+oJJ/SYnS5AA87DcTIuj8JaEDxH5YtgJotSWcCdj/sJurgDSw== X-Received: by 2002:a2e:980e:: with SMTP id a14-v6mr4306179ljj.119.1549793697240; Sun, 10 Feb 2019 02:14:57 -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.14.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Feb 2019 02:14:56 -0800 (PST) From: Nikolai Kondrashov To: Benjamin Tissoires Cc: Jiri Kosina , linux-input@vger.kernel.org, Nikolai Kondrashov Subject: [PATCH v2 11/23] HID: uclogic: Add support for Ugee 2150 Date: Sun, 10 Feb 2019 12:13:57 +0200 Message-Id: <20190210101409.3511-12-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 Ugee 2150 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 f66553157be5..304476200c28 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1137,6 +1137,7 @@ #define USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3 0x3031 #define USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_81 0x0081 #define USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_45 0x0045 +#define USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_47 0x0047 #define USB_DEVICE_ID_YIYNOVA_TABLET 0x004d #define USB_VENDOR_ID_UGEE 0x28bd diff --git a/drivers/hid/hid-uclogic-core.c b/drivers/hid/hid-uclogic-core.c index 81693183d647..33333a3e5ffe 100644 --- a/drivers/hid/hid-uclogic-core.c +++ b/drivers/hid/hid-uclogic-core.c @@ -338,6 +338,8 @@ static const struct hid_device_id uclogic_devices[] = { USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_81) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_45) }, + { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, + USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_47) }, { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3) }, { HID_USB_DEVICE(USB_VENDOR_ID_UGTIZER, diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c index 132663a87f38..f57bf2698374 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -969,6 +969,8 @@ int uclogic_params_init(struct uclogic_params *params, USB_DEVICE_ID_UCLOGIC_DRAWIMAGE_G3): case VID_PID(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_45): + case VID_PID(USB_VENDOR_ID_UCLOGIC, + USB_DEVICE_ID_UCLOGIC_UGEE_TABLET_47): rc = uclogic_params_huion_init(&p, hdev); if (rc != 0) goto cleanup;