Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2306491yba; Thu, 25 Apr 2019 14:11:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHqfBc/dBKw8UOKSsNASwUZTiHRD1Hym55Tg5HDN2co7lYfCXY48P4e9OBiFja/8oqmKdn X-Received: by 2002:a17:902:3283:: with SMTP id z3mr42962100plb.281.1556226719382; Thu, 25 Apr 2019 14:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556226719; cv=none; d=google.com; s=arc-20160816; b=wsBpJ7S31QD6C8lCNrtSE7WBU9y+7iSMwQM1exSnsZ9ASHB+gW6Zprx1ZRsRcRPcBN InZ40DtvE+nzeQ2JzCtaN+n7rODyuHNiihBbIUUPPbuMe939OTtf6fPQywMJYIPpDAeh aD5Gz76xig5ODsJ/dZv8RempV7ouNsXA4f+ecetPBxJRTEgIDQWJpJfORP3U7600UKzn GQKX04fHE2AP85fv5JBd0Cd+gPl8Y5V4Gfn9Hv6zyO7K60tT+VaeDrycI/s7o0G8KmEY 7WcwxzWY4xu0Om53JBwi0Bz9VzijNNqor6VE250QhYJLwBfdqq/7cEqcWGMMu9AdPUc5 CGCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DbfVxgdfCkhec35GU1HQ4GzG8kpZ8WlM4OxO53B8PaE=; b=ako//nSpyUri+9xUQH/lZRBEZvDTHm6vTBno7hXddPYIbRxsIcWBkiAXjsM5e8bDl7 ZHShKbSb6Ygv+L8TLTs75fPqlhyq8cY7JLYwYFxgHIjREwVG9AWnQ22F0DDDVXFdRAhz aNJXsvIsxiBE9E5DCbJ5yLiuFCzpYL+1sCLQtc6+RY7eTwFlEEWbP5HtfnPeQeZ3xtQo tgkJWHR1YSKQ2qiTuVlSXfe1z+k75mgU18Dp8ImCSKmGAsXeg6vPaC1FEYhJ/uWEuQUd Y/HgLNmVO0ANJkYHJMDEJ7FnRX7Wkt86J1mEo8qw3mRVcw2Prvf9jl2+LZ8pDTfUfmWn T6Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iaApaGFc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si10679372pgg.117.2019.04.25.14.11.44; Thu, 25 Apr 2019 14:11:59 -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=@google.com header.s=20161025 header.b=iaApaGFc; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730442AbfDYSVb (ORCPT + 99 others); Thu, 25 Apr 2019 14:21:31 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:47040 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730040AbfDYSVa (ORCPT ); Thu, 25 Apr 2019 14:21:30 -0400 Received: by mail-pl1-f195.google.com with SMTP id o7so178121pll.13 for ; Thu, 25 Apr 2019 11:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DbfVxgdfCkhec35GU1HQ4GzG8kpZ8WlM4OxO53B8PaE=; b=iaApaGFcj6uU2U94JYwH+aiYpAs7mH4qgTvb/UfwCTNP1OssqnPAGZHW7IpbqdtiYp PyIuw9vaPpUD6RIQXKUtWGkSMvCzm3i5yCj4lH+X4560EZv9zmEXdNBAESbJ9v6+aOSV X++1ZxWBxs4iDNmx5gM00p77NUpD85HuuGe1GibMkOsENpkcOtmd35qt73CJhLIM2Cxh a+YNZry3+A1b2YcezOlSUbKGZ40TC2qUo3zcSW0L78XJYGbf9QzXqwIe3rG3oTfp9RuT k/Xqvp8/Oqyzg8Z9HdPmDsNmRNrhpxw6FrYQDR5AVepA2k3Jr9F8F8rwF1ZGAqfF04q/ AXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DbfVxgdfCkhec35GU1HQ4GzG8kpZ8WlM4OxO53B8PaE=; b=rD7WsT6CNp6oxGVE01/a9PVEHWZlACStHagFUIKD74CcclNT8W3q2mWvlJEf3zjVdA QPMrTdq59/IsCFESEJW1etYyujLGqv4fRxJleTOx5pEKaGLwgiw7ylg7pJ9t8i/wFnwk sJqhSr8bJ/+XZ0Lxxo4LkJo0sJAx0sz//DtcCQuPMh06LYLseZ0Vf9HELrAteEjq5X75 rJ/3VK7P3uBCk7PshBKAITonhXJ0BwLtjMocb94X/1NIeams+9sS4f3MUKY25CzOmO1J vTHyBs/IAzMCOB6z8ePLtju66NjB/PeFXT4fwlb+hLIkzoXHjameoJZjDl5A+i8Q2onK ZVhw== X-Gm-Message-State: APjAAAXmCbwf8rCFdNMtjRNjS9hRRC1MKuC4YtU+aQH0WImgnOK12xCW GaV8pq9v77z3gqLBYIsP1lzGPA== X-Received: by 2002:a17:902:b617:: with SMTP id b23mr38726843pls.73.1556216488899; Thu, 25 Apr 2019 11:21:28 -0700 (PDT) Received: from google.com ([2620:15c:202:201:bc61:d85d:eb16:9036]) by smtp.gmail.com with ESMTPSA id a18sm12011087pfg.177.2019.04.25.11.21.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 25 Apr 2019 11:21:26 -0700 (PDT) Date: Thu, 25 Apr 2019 11:21:21 -0700 From: Benson Leung To: Heiner Kallweit Cc: Benjamin Herrenschmidt , Michael Ellerman , Oded Gabbay , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Joerg Roedel , David Woodhouse , Realtek linux nic maintainers , "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bjorn Helgaas , Benson Leung , Enric Balletbo i Serra , Stephen Rothwell , Paul Mackerras , open list , "open list:AMD KFD" , "open list:RADEON and AMDGPU DRM DRIVERS" , "open list:AMD IOMMU (AMD-VI)" , "open list:8169 10/100/1000 GIGABIT ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , "open list:PCI SUBSYSTEM" Subject: Re: [PATCH v2 9/9] platform/chrome: chromeos_laptop: use helper pci_dev_id Message-ID: <20190425182121.GA175682@google.com> References: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Heiner, On Wed, Apr 24, 2019 at 09:17:19PM +0200, Heiner Kallweit wrote: > Use new helper pci_dev_id() to simplify the code. >=20 > Signed-off-by: Heiner Kallweit Acked-By: Benson Leung > --- > drivers/platform/chrome/chromeos_laptop.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform= /chrome/chromeos_laptop.c > index 24326eecd..7abbb6167 100644 > --- a/drivers/platform/chrome/chromeos_laptop.c > +++ b/drivers/platform/chrome/chromeos_laptop.c > @@ -125,7 +125,7 @@ static bool chromeos_laptop_match_adapter_devid(struc= t device *dev, u32 devid) > return false; > =20 > pdev =3D to_pci_dev(dev); > - return devid =3D=3D PCI_DEVID(pdev->bus->number, pdev->devfn); > + return devid =3D=3D pci_dev_id(pdev); > } > =20 > static void chromeos_laptop_check_adapter(struct i2c_adapter *adapter) > --=20 > 2.21.0 >=20 >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6gYDF28Li+nEiKLaHwn1ewov5lgFAlzB+qEACgkQHwn1ewov 5lip2g//eS1J0w28ODQxNNXn6vFg16ufHWY3pS3fpqOzY2iOnxmiL4V9a8qXXgs6 Nb7+tl1LTqFgN10TKr4KcYiPShVug0uz3SX9Gx6sI8d0C8Cy74QrQf4wQp48cg6I 0J0BgM0Icd6QdpdrNYZrcRmFJc7FY16i30SMAuINtfcnqgw4oU6hSG3qNXjqNrFG 2VUUjZHpvbAwWso0xToWjfK0TNPQXSslFKi+ROjvWlL+y0TGUBbcMbxviAp1H35X CuT5Ijknh8FdG+NaMFnGXf6JvzGORNgXlAon15XEbKDf25/K/JyyDh9nJuPesOwG MmYEiWj29dwg3/8rKvuWpuJVqWplC4x+ZCFvvEaDFeoxZuoLVc5QkVMRkupxwoA7 Ux1/Q9A7YS7OjOPhN2DikJIn2hEJnEyCBU2PdKEZToCUJ/C2gA+WqHyNXcflOldD PBJSisoYM4LcuV1hhhfXUU/n/BgVPbmYWfvyQpHEbDpnlnDxMb+LheCgDlBn9mAh QBD82gS5LcMo20071hVEqReV4zBzOc+S+h/4OxYW2HCNyn3qwztqYOge2oM/ezQ8 CV98H+KfIw+dYK8Vi40O9C05+NRkcAY/RaZzjQMyDJG2KxcO1mZhdhhbzCBRuS0o pj3CU8ScPFa+s0qe7xk/Pac8fR6hmcse8jaJKX7in5MDKQNQ2CY= =Oshd -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--