Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8903026imu; Tue, 4 Dec 2018 16:44:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/2Luil/1XnTqQAPk3YXRURXDH0yxQGNaiVMeAheUcvCNP1PsAx7MMgZrOGr4rNjxoXsvM X-Received: by 2002:a17:902:2887:: with SMTP id f7mr21406853plb.176.1543970665344; Tue, 04 Dec 2018 16:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543970665; cv=none; d=google.com; s=arc-20160816; b=VVUibfnDEc/CN55m3UqR/br+eZ2D9sgZL5+qgRbTNaH+xEE9wWYB8CKY4MYrfRnho6 CtpQbGtPwhRbabDvqvHodZb8E9OOM51twtkJ49LxA6kKZ+0+CJVsZKORVllE/hPNPISY Fx683zqoDaAECiInGV4/GVT/uW0ZfSbwmn5zC18eHBlIHI7LZDe0FTqlUdaXv1rdx0wQ YgDKojSh2X3QHovH0CpWtC66B3+xNMRB0G8oTjySYC17g18DxArTdzeFjmJlNJ+RGtsV Q+VxFGmVxbArTQMfGWQ7029/YfU0ESTF3JhkxgdCO2z+L0iN5meUpDHwojTX4sxt32EM zwnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=+YYg4uhf70OKmhFN9YmF5qswdQNugSbQgP5G4iECx7w=; b=qAgmpLe6OsZvzNmoOkooUDIPEuHz91F97tYeEIs9gNAaBxsctB1hISoUi8wD9Uv5of KjTt7utzAHfISRxTRLdMB7jgsYTSVwOeDxJeiaOtNB8JFoaf9o03e89Zr6X6mRcFQEVm YJEpywBnKz6qO3tveWWSGcxn5b5tgpwxCLC76N0IcyiQM7OjrKP9fVOTU35/x2RKlLK4 vjYGt2kbHkYlyLNKaMpKanHauOePCwoNOudGtuwCSX6IT9lA3cVSjHBbwPsO/pAjtOQj i1sxqZbp95Xrztfs/TIfFLxZFu8Rot4xRTr3hHpHnDf97RjL/jqeMHy0uviinjfx8LwH ER1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=jGBZTkUF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=X22RKtVP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si15048396pla.81.2018.12.04.16.44.10; Tue, 04 Dec 2018 16:44:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=jGBZTkUF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=X22RKtVP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbeLEAnU (ORCPT + 99 others); Tue, 4 Dec 2018 19:43:20 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:35421 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726828AbeLEAnR (ORCPT ); Tue, 4 Dec 2018 19:43:17 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8B469F68; Tue, 4 Dec 2018 19:43:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 04 Dec 2018 19:43:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=+YYg4uhf70OKm hFN9YmF5qswdQNugSbQgP5G4iECx7w=; b=jGBZTkUFbPJjpqmu1uf3+b+lVh8t0 DOfS1UlliUU4l6svAlh9jI9EhOHi8z7E33mUO2+kAQ9AhJZVMQk2je2Gd/ki4LSS XracmWJIjGRg3b0swpHzh7veWYt/76uxOB3T4M6ixZNY+hw5JsX9+3P5KN/sxGSY ixe0SNtXHdZe7WYkuj37ePJp7tjbRd02O1QBJRgrXQuklQZ+QJ8DkArrYKA0yUAU rU8mubymI17LEy3IA9MJR0+jhU3lgcqGSc4fS5aSd0mFV91wZfKlXRC2pR24Kthd lpKAqx/Jj8fYKgTFBFIuQEzHC9oMskudCMzelyjPmxjvM5hU0gnHH/Qdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=+YYg4uhf70OKmhFN9YmF5qswdQNugSbQgP5G4iECx7w=; b=X22RKtVP S6/BujsaqUEaQ1blfKhSKFZQu3dSjNSzmb3NQuiebg+Ack9FYNCV9u3LgHnGlydj 8P8f/rtNmhjUyhhPEj+lWqOvOuBLEe5a9kTnH3m+mNOSZZCGmpekM1OgaBt3O3dR JBP5jCSzM9w4I8y2lK/iJ/2P6r1GoHIRroqJ3jSb90U9juV3zj2zy5qd0mSEwb6i zQCUTo8CINkmPp0TUeqIPBPsDmaoqzVt3ApOuOwr204mCMnpnixv4nxuwfS23nsO EVk3eiF19b12NTNxWRVlFK8zmVv6iPzeeQDAki4bVfq092yn0JzSEN2S1X+bNj+q qUXW4wXCGXEGjg== X-ME-Sender: X-ME-Proxy: Received: from jelly.home.gateway (167-179-166-29.a7b3a6.bne.nbn.aussiebb.net [167.179.166.29]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A49DE4925; Tue, 4 Dec 2018 19:43:12 -0500 (EST) From: Peter Hutterer To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , Jiri Kosina , Harry Cutts , torvalds@linux-foundation.org, Nestor Lopez Casado , linux-kernel@vger.kernel.org, Benjamin Tissoires Subject: [PATCH v3 8/8] HID: logitech: Use LDJ_DEVICE macro for existing Logitech mice Date: Wed, 5 Dec 2018 10:42:28 +1000 Message-Id: <20181205004228.10714-9-peter.hutterer@who-t.net> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181205004228.10714-1-peter.hutterer@who-t.net> References: <20181205004228.10714-1-peter.hutterer@who-t.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Harry Cutts Signed-off-by: Harry Cutts Reviewed-by: Benjamin Tissoires Signed-off-by: Peter Hutterer --- Changes to v1, v2: - reordered from 6/8 to 8/8 so the intermediate steps all build drivers/hid/hid-logitech-hidpp.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c index a66daf8acd87..15ed6177a7a3 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -3362,13 +3362,11 @@ static void hidpp_remove(struct hid_device *hdev) static const struct hid_device_id hidpp_devices[] = { { /* wireless touchpad */ - HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, - USB_VENDOR_ID_LOGITECH, 0x4011), + LDJ_DEVICE(0x4011), .driver_data = HIDPP_QUIRK_CLASS_WTP | HIDPP_QUIRK_DELAYED_INIT | HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS }, { /* wireless touchpad T650 */ - HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, - USB_VENDOR_ID_LOGITECH, 0x4101), + LDJ_DEVICE(0x4101), .driver_data = HIDPP_QUIRK_CLASS_WTP | HIDPP_QUIRK_DELAYED_INIT }, { /* wireless touchpad T651 */ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_LOGITECH, @@ -3408,16 +3406,13 @@ static const struct hid_device_id hidpp_devices[] = { { /* Mouse Logitech Performance MX */ LDJ_DEVICE(0x101a), .driver_data = HIDPP_QUIRK_HI_RES_SCROLL_1P0 }, { /* Keyboard logitech K400 */ - HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, - USB_VENDOR_ID_LOGITECH, 0x4024), + LDJ_DEVICE(0x4024), .driver_data = HIDPP_QUIRK_CLASS_K400 }, { /* Solar Keyboard Logitech K750 */ - HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, - USB_VENDOR_ID_LOGITECH, 0x4002), + LDJ_DEVICE(0x4002), .driver_data = HIDPP_QUIRK_CLASS_K750 }, - { HID_DEVICE(BUS_USB, HID_GROUP_LOGITECH_DJ_DEVICE, - USB_VENDOR_ID_LOGITECH, HID_ANY_ID)}, + { LDJ_DEVICE(HID_ANY_ID) }, { HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G920_WHEEL), .driver_data = HIDPP_QUIRK_CLASS_G920 | HIDPP_QUIRK_FORCE_OUTPUT_REPORTS}, -- 2.19.2