Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp33633imm; Thu, 30 Aug 2018 14:58:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYEhblO2ENUGgF9LV3JldKlInvR/4QrgzIL3s8NtZ+AC0nIA5AyMXJZLw9AT4/ZdkoPvZth X-Received: by 2002:a62:25c5:: with SMTP id l188-v6mr12268873pfl.179.1535666309023; Thu, 30 Aug 2018 14:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535666308; cv=none; d=google.com; s=arc-20160816; b=ZRqQVaP2v1sMclWVm2l/UrpT8y0uoXz7uny2ZBcR6oh+CipbgktlusF7KPlfv4EPt5 fuHx3juzsGwXwRJN2UyrUZsLuyZ+VvAd32nAMVkF9z9BLoGU6tKBrT9CmQLkKejdFFa0 KJ47EAsmoLQCB6AnoQ/NncV2nR0IQkh81YfYLrp2Pv0WGWL2nrw0m72H+i47YqrEHjxV Jz/I1UPbQpXHCnt9tqD0l8NkyZTQp8qp+MnVFS02pieUlrh3EzlDmpE+aQmkRHOR8aOJ MVG/zu0/0CK1R5rmtPdQF2kjt6tctuCE3G7QCSUZ+WBhfxokepbNlkTVLDtX+I3nZ4tu MzFA== 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:arc-authentication-results; bh=Rfg9rzUuVH60O1UxfmaDA50ly54WqIEeTGdSH0qZedo=; b=J7cW3fvacb23Pm9S6qn/+8ceNx+W+Z+xPhTUuz9TD0cY8CGoSp+bV67bjEZDNKamzy HBBW6ZB1QGyZDP0CP71vGxy2y2R76R4n+CyAZ4Urt3lJXGv7mVJm/00r1p73H++LwQRy JJ7DH6za9E8Pk0+KmR3I83vq1MN7AIkFBJ44Qkjg3MYrkE6K4AXty+pSJ+Jnm9JwaRFA 4b+S/2g23qqixvTdODtfOAA/Y1jmwoycIjbWE9FEhvo4EOU0DQz05Z24b/2/WrVbmgvb G9TuhnRxH0wHFcwyLdnnlikTzvfyv1Q4U0QHn6oaic9IxykrOoGbh+CmUuyH5kNsBJ4G 798A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jBDSFIds; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7-v6si7059780plp.263.2018.08.30.14.58.14; Thu, 30 Aug 2018 14:58:28 -0700 (PDT) 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=@chromium.org header.s=google header.b=jBDSFIds; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728061AbeHaCAt (ORCPT + 99 others); Thu, 30 Aug 2018 22:00:49 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38324 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728046AbeHaCAs (ORCPT ); Thu, 30 Aug 2018 22:00:48 -0400 Received: by mail-pf1-f196.google.com with SMTP id x17-v6so4493059pfh.5 for ; Thu, 30 Aug 2018 14:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Rfg9rzUuVH60O1UxfmaDA50ly54WqIEeTGdSH0qZedo=; b=jBDSFIdsNFgf07jX7/BSm57CebfNJqzTKc8JtFNuVGTaHfsIzBXelTqIqkJAdjNsD6 BD60X6IGBOpLUt3uCJDkM+O0kugzwToXPijABaCXgOxo3loFgycmoPY8QtSPa1LNuWWz 7B4HyHJf9+/4770rN4D8RFPbsraMBTDtZxqWM= 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=Rfg9rzUuVH60O1UxfmaDA50ly54WqIEeTGdSH0qZedo=; b=MSE2AIyddIph9opMnWOPSw/epuRM180LKuKI+Hw7O5SqHO2vHwSnszkNBKJPjxLUdt ScIn9wdt0omN7JWGFWs1nACxoME2BuwOTIoKOLjdJZAX2HQ5CSk2iKMZHqTr3D/6MgnO oewyAdDEe69PLc2BesFLVIZWcBX0pXWajXPn26CrAXZK5M5F0v6htxMCH5Vgzet8Amqf MgWza2TtD8llndtplklvZImkGdlLThq/PZhKvmGQj0K17B178j86XIKy6TYat+l5jsdZ KGPdxZtJAaJu39eLC+lKMdJOh1ZWkiujfly+s31zlKRSArbcULUqJ9lCarpEqDPpQPk0 poew== X-Gm-Message-State: APzg51CVYh8Vgwx7apa0jOPx0NVLd7jy1jinqVIVAYOk+mIrPq9SnH5V et+wkMPmh5M3Bixx666dY/SwCg== X-Received: by 2002:a62:2285:: with SMTP id p5-v6mr12472726pfj.53.1535666192116; Thu, 30 Aug 2018 14:56:32 -0700 (PDT) Received: from kolhar.mtv.corp.google.com ([2620:15c:202:201:356a:9de2:526a:5bc]) by smtp.gmail.com with ESMTPSA id h132-v6sm13516828pfc.100.2018.08.30.14.56.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 14:56:31 -0700 (PDT) From: Harry Cutts To: linux-input , LKML Cc: Jiri Kosina , Dmitry Torokhov , Benjamin Tissoires , Harry Cutts , Jiri Kosina Subject: [PATCH v2 5/5] Use LDJ_DEVICE macro for existing Logitech mice Date: Thu, 30 Aug 2018 14:56:22 -0700 Message-Id: <20180830215622.47550-6-hcutts@chromium.org> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog In-Reply-To: <20180830215622.47550-1-hcutts@chromium.org> References: <20180830215622.47550-1-hcutts@chromium.org> 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 Signed-off-by: Harry Cutts --- Changes in v2: * Changed the REL_WHEEL_HI_RES code to use micrometres (a.k.a. microns) as its units, instead of 256ths of a millimetre. * Removed support for mice connecting over Bluetooth, due to a bug where the mouse's high-res mode and the driver's settings get out of sync when the mouse is power cycled. * Moved the creation of the HID++ 1.0 function and the refactor to use the LDJ_DEVICE macro into separate patches. * Added a couple of explanatory comments to the Logitech driver. 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 fd6a8c325fa0..5f0c080059c6 100644 --- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -3314,13 +3314,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, @@ -3360,16 +3358,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.0.rc0.228.g281dcd1b4d0-goog