Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1195420imu; Thu, 22 Nov 2018 11:54:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/W9OvFn4IbFgCVL+w2g0CK/tUg3gpB9CgPkDjh8iil+YsuMjx6KUlihYQROf9xKSVORZFBL X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr11818748pls.303.1542916455642; Thu, 22 Nov 2018 11:54:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542916455; cv=none; d=google.com; s=arc-20160816; b=NAvXDrTTiXoFYIQskrRVQ1koBcnntR2VxH2J+4XUTNY0rlHPtFtSApBRZ7Yw+iV/FL w2IJ9Zp/BBFM7jq5LPOY9JyIGLCsDyOjmOdj9CDEwJpLQYijAGZB6pZVD1owyv78kNzB 0NemM3E0WUCDhMfMVyQ1Krokt0JRNFUYXXzcCrWlN3Y0Z4ZnVj6b/gvU5v38dFK90tZs vCjtrncQg5Ll2spwozZPpbfjqw6LeX6pRluyl74Ls8/DeSArTB9xqSwjkVKKieJloSqT 5rS5nF0UlsjGl+2eQMHTtJbr5YAOiaAZV6OGCbGduIe2ST+AWipN4MJGFJpLZd1DrLmd LhNA== 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=azn5uNQHddCE5FHZ2kqZWh+UcafNuwJEvUPkjsC4iRE=; b=ySjiF/MoK3jYsmOvV2L/iqJQ0lJUzbA6qlItEEc1hzUZUu72WhU/l6xbHU6EsCqFz9 mAmoH8Um4n2pA8TWxbCBPslRkfeglhRLX8H7XUg5/Qk4rcNyAMywYIBJcab6UqW0J+z9 PhgM5NVuRWGB+g2y7wKIaD4rmnwAWVOIhnheZoQCfeSffGr8GPycERl1eJv7lAGn44d8 altbMoecphHoVpKiHuOM1aMgOaAhb1mafdLjI2UUpyV4N/GUTzD1usw4X3QmZtxXcwh+ JPeX1K8Mk3T3vI+ESrJd/R9qijK17Tufa9Iwxp1J0RN4v1r1bffmi4kCNaN5YadA+m0S wYvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm1 header.b=M8myfnWb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZgtinLok; 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 a3si50046864pga.297.2018.11.22.11.54.00; Thu, 22 Nov 2018 11:54:15 -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=M8myfnWb; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ZgtinLok; 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 S2404785AbeKVRNK (ORCPT + 99 others); Thu, 22 Nov 2018 12:13:10 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:43869 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732955AbeKVRNH (ORCPT ); Thu, 22 Nov 2018 12:13:07 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 57745221E3; Thu, 22 Nov 2018 01:35:08 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 22 Nov 2018 01:35:08 -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=azn5uNQHddCE5 FHZ2kqZWh+UcafNuwJEvUPkjsC4iRE=; b=M8myfnWbWQugZ1WmTrMCY/SzanRhf PUXF/53djSe/olX+yptg32bUTDxm/+TBgX6FXCT79QX8A9Hm412TxeOomPwnr/MW CZekZ87NsnMtIengteQEzPKTu9GRT5hFeJhqDMGS8loV8KbVCh6q3FE/J65Yq37X yb14rFMwBNKMbnVUbQu6ajnC+LU7zpaU5DzUeUrr8DGnfHnwWtha0AQOfcrAsfh6 VyMWCD3Gpbu5CKz43vOIS6edNMkEPcA+qkVxABp2Gl6BTIBXAxHEhQALWi04m9iJ pNYBKYRIaZytW6kI7x/J3iylftNJREWz4shu24F7/g562wzUoHa/uLzrw== 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=azn5uNQHddCE5FHZ2kqZWh+UcafNuwJEvUPkjsC4iRE=; b=ZgtinLok dve+xIKW/qQNvv7YyGCB9Oahq1psRfvldX6bjMW4CKHcZkhd6F+YSKwTD8Nt22Hw 9CVkaTTXb39yuvGqiqyesROtbwWxH2mZrMdYuVWKS0q1VYPqj5MwNIo8TWdYhDq5 /pip0/wYkALQqOC9R6cssDbpHGx5UfiFqfP02GheRVagl150FInaf0BFJ65enjfa hWmso8n6cZ8zxihpWxf7C0nuRDqEkXyDeNuqgykMf9lAa9tlLsKeMR2MpSmb23S3 I6RHQz3makDXXM8HCotAUh9vfE8gZ+UHSTlgYI+Kb/iEdR1tOUijpitcaajJQw7V PSB89ocis+qMuQ== 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 80697102DE; Thu, 22 Nov 2018 01:35:05 -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 6/8] HID: logitech: Use LDJ_DEVICE macro for existing Logitech mice Date: Thu, 22 Nov 2018 16:34:07 +1000 Message-Id: <20181122063409.15816-7-peter.hutterer@who-t.net> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181122063409.15816-1-peter.hutterer@who-t.net> References: <20181122063409.15816-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 --- Unmodified, same as the reverted 3fe1d6bbcd1 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 22b37a3844d1..146feedd9a2f 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -3088,13 +3088,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, @@ -3105,16 +3103,13 @@ static const struct hid_device_id hidpp_devices[] = { USB_VENDOR_ID_LOGITECH, 0x402d), .driver_data = HIDPP_QUIRK_DELAYED_INIT | HIDPP_QUIRK_CLASS_M560 }, { /* 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.1