Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1003961pxv; Thu, 22 Jul 2021 18:57:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwBiI+3BOfW6e4HKX7ZFfKkUTrpFCak9bsGafuofwOnSjnYYZj4vZ+y+9ZOa/yabeOfjzW X-Received: by 2002:a92:dc8a:: with SMTP id c10mr1925556iln.48.1627005430475; Thu, 22 Jul 2021 18:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627005430; cv=none; d=google.com; s=arc-20160816; b=XzVRZAZGyba7TyUBjR+JqEIcwx/pmmjmYb5ZSjsq1p06JUYoRxT7dPTR/mUGuDGXEQ aCJv477USSdqrl6iPxNvN5oIg4H4cyQhVN2ZQdCi0sIFvMXbIauCXumbxVQd8p+1YWjM sz/yhcbRNKwdfnKG6DKeemV6b5t2YrGx7peWI2/gy8XqADzspz+rSZ4g2QaaiUY81kZr tnXaerMNqXeKuXmErhTA6fZSeqHf449AURqtx6aFHShZ+1bv8K7zypmD4/qyDBySpNO8 NeCZNAAd1dWJ5m5VwSI6QeYGAu7qMnCUZAzAELb8fCBYCtnVjEXva4bBNu3+j31Pl4hd 90mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ebvyYb7pS2jJViCUizPgPfMkV9niDuHd0LwqNccX4Go=; b=igx7wKKc4yIJyc3CQL8vLLxLcXyhFvFuHQrvHzOlMCp36WyjdD5uDCJMteFUXKUlse d/740PyHGFoAWPqsIzLK6p7GeVvGl4Y7denWEwRlBsEZIV8AN3yflz+uMe6wQ4xtAi3r UK0hJX8QcoVAsGq1IVWWpxJnycWk5yTOJi2PxkBt9epkXk/fhCCdCKNFUvJUVuyw1qdb biuhaP1pq5xF6fq46MH1ZcyVycoy0X2Zg8QHDCw8nTxhHfxvb66JTgsW2NucWRM5Fque cp6uyYgd3V35G+2+7zlz88TSmeQd+ibmBBGPOo94RZt4LoYtpoASnbXn4EquolOXHCLn jRWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y26si15947327iod.1.2021.07.22.18.56.58; Thu, 22 Jul 2021 18:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233096AbhGWBPi (ORCPT + 99 others); Thu, 22 Jul 2021 21:15:38 -0400 Received: from mx21.baidu.com ([220.181.3.85]:58340 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230318AbhGWBPh (ORCPT ); Thu, 22 Jul 2021 21:15:37 -0400 Received: from BC-Mail-Ex20.internal.baidu.com (unknown [172.31.51.14]) by Forcepoint Email with ESMTPS id 3550B4C274F9BF6F3B13; Fri, 23 Jul 2021 09:56:09 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex20.internal.baidu.com (172.31.51.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Fri, 23 Jul 2021 09:56:08 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 23 Jul 2021 09:56:08 +0800 From: Cai Huoqing To: , , , , CC: , , Cai Huoqing Subject: [PATCH v2 0/2] PCI: Make use of PCI_DEVICE_XXX() helper function Date: Fri, 23 Jul 2021 09:55:57 +0800 Message-ID: <20210723015559.695-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BJHW-Mail-Ex16.internal.baidu.com (10.127.64.39) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Could make use of PCI_DEVICE_XXX() helper function Cai Huoqing (2): PCI: Make use of PCI_DEVICE_SUB/_CLASS() helper function PCI: vmd: Make use of PCI_DEVICE_DATA() helper function drivers/pci/controller/vmd.c | 38 +++++++++++++++---------------- drivers/pci/hotplug/cpqphp_core.c | 13 ++--------- drivers/pci/search.c | 14 ++---------- include/linux/pci_ids.h | 2 ++ 4 files changed, 25 insertions(+), 42 deletions(-) -- 2.25.1