From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C69A9C43218 for ; Thu, 25 Apr 2019 18:21:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 42039206C0 for ; Thu, 25 Apr 2019 18:21:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RSR71zyg"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="iaApaGFc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42039206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6R3AGORU6+3os2sSH8JSYU+sXtzvJ5NwVFDAmzExxpA=; b=RSR71zygh5CuGlhQdarxeMfHr 2adKW09P7hkjl9sCIa+wMXxkbXNjKA+g19DWW4RooHvh8rIVMFwfaFwICY4bN/RcvEY6RhPe40v3/ MlZmBwX3PIPix1RWuep0gFOMmItQidwFsKlqkm4UGkokTX5JUAcLimE7Nnga0HR/1chst17iCmlcc 2CnorwZW+ZFS/rOmbOUJEJLWWN7iSyEz/dDCNUAuEZG8GX7wp+U/QcrMyXJBdZkU1Ewpn3UGKmSJ2 iAy4YTE3SMN0BaKb5nAPfzXzRDl5vAicqjkueJ9zs1avgU5944S061vC0AsRBdx78UEclYOxQAU9l 8H8QILplg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJj04-0001MJ-9q; Thu, 25 Apr 2019 18:21:36 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJj01-0001LO-JB for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2019 18:21:34 +0000 Received: by mail-pl1-x641.google.com with SMTP id d9so193239pls.8 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=kFU4N4n1MWQhXrT6w5N6Mj0yW/F7zxFxyu09OUfrENq1af87ODTmO/hk869FuhOvo5 gKvK+guC9dVoV3B5ksIa3haJppkjFIlFW5n8LVByOnGzksDophhAbxO/TBF88jWV+wvI ftcENPSTuP29wNasd8RsTSmr1fWVb8HdzLJSbfn96Q+yeIEmmTvIVjaOOqf7JFiO7IDJ G6sSCFV65osacyrx3VifniunblSKO8KQLI9lwZTZC4QguQEm4qKWJlcXuU0A8U5DAgNF bXrxWmlIx+kHJgMeDZUWuwOnVW+MByZ5RqcniQKp+V6DRg73D2i7lb43viHzA8ijYn3d 7f9A== X-Gm-Message-State: APjAAAVrPY9a5WcT0LY86b19Swb6axWzyhkKLdOfu8XOfHQ/4YohV/eJ uXy2e43RW0rR+/LZ79lGTsyBJA== X-Google-Smtp-Source: APXvYqx49q90L/wWwW5GuHsq/Eb9SbYDthv2PbvdhVaz1WB1tjR5W5Iz+vYFKxKh8VhUnwu/NtNifA== 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 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 In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190425_112133_634152_D5B1CAC5 X-CRM114-Status: GOOD ( 16.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Benjamin Herrenschmidt , "open list:AMD KFD" , Paul Mackerras , "moderated list:ARM/STM32 ARCHITECTURE" , "David \(ChunMing\) Zhou" , Michael Ellerman , Joerg Roedel , "open list:RADEON and AMDGPU DRM DRIVERS" , Jose Abreu , "open list:PCI SUBSYSTEM" , Realtek linux nic maintainers , Alexandre Torgue , Stephen Rothwell , Alex Deucher , Bjorn Helgaas , Giuseppe Cavallaro , Benson Leung , "moderated list:ARM/STM32 ARCHITECTURE" , Oded Gabbay , Maxime Coquelin , "open list:8169 10/100/1000 GIGABIT ETHERNET DRIVER" , open list , Christian =?iso-8859-1?Q?K=F6nig?= , "open list:AMD IOMMU \(AMD-VI\)" , Daniel Vetter , Enric Balletbo i Serra , David Woodhouse , "David S. Miller" Content-Type: multipart/mixed; boundary="===============6635635742893813262==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============6635635742893813262== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline --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-- --===============6635635742893813262== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============6635635742893813262==--