From patchwork Fri Sep 21 17:25:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 147311 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1078605ljw; Fri, 21 Sep 2018 10:28:17 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5UQd3lJSNuOxnD/ODnJzc0UDfw04kteGSQUaehvLJXadzjAGsGA4/YRvSKYhGaTjj9Yag X-Received: by 2002:a63:24c:: with SMTP id 73-v6mr43571971pgc.252.1537550896921; Fri, 21 Sep 2018 10:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537550896; cv=none; d=google.com; s=arc-20160816; b=sK78Ur/8xLI75vLftt7OxmdxdLWjtKXTuZcucdRx24C6e3Arnu8llURZqQZWLPxbsh ieaj2OIEU20dBwOi4Ur0vgxQ7MmcrgGFc4sa51kDoGzrg+/7pat97Rx7ts+Bp1uB53kg dXqYromnXbvHJ7jLVmaBj9s1zC86Yo4OWsvL5zRB0qhNbK6EklPRQsznbDKbXCHPur5O 7MOtmLQMNjFEcD0NMrEqnkZ4il3koXp8Ox/vd0fWKOUdPRqn6tWfQK71VUHAFlkRaeoI i3fbB/MbAVPmvrPfM7w5mncPu4UcY2Le61+fFocB7VD1a25QQuRufCMpOn77Rpm2xoY4 WLoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=5QZn/wrgS4Uzvyildvz6o1rKr+EeQbCF0b/FpDUtFKQ=; b=RLGyIcJ5JNMtRlvhl06yK9twUcNPpX4YZ3IS/lpVwEd8ZjFdYaINLQtQXxz3TKeiDD VtA7hnBAvV/KS8HmaUQ7NSmKpKWn9WH/BiG/0bng4sbt1o7ZJLsbrguSAch8PdOtVt/B gEWDoD7fV+X7ciXY5B6p5csDhO4MztJ+1uwA8FtBOCQyT4Tr/M6HMt5C/5gMzO6OCn4Q S/iD364uc8LBYoLGgihpWy736o2bnfn8CD7LSL128uMDuFSUpqR3vqyW3pzGHEcgDGwB kqLnjkwHS8oR7EhgBGVKnmiSbIHg6DNLK1pAGek1Bqj2M0JlvVCoew9DPpO5I0mLrXhq /Tug== ARC-Authentication-Results: i=1; mx.google.com; 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 f3-v6si25808942pld.366.2018.09.21.10.28.16; Fri, 21 Sep 2018 10:28:16 -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; 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 S2391041AbeIUXSG (ORCPT + 32 others); Fri, 21 Sep 2018 19:18:06 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44255 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388909AbeIUXSF (ORCPT ); Fri, 21 Sep 2018 19:18:05 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A2AAE3617D593; Sat, 22 Sep 2018 01:28:09 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.399.0; Sat, 22 Sep 2018 01:28:04 +0800 From: John Garry To: , , , CC: , , , , , , , John Garry Subject: [PATCH 3/3] drm/hisilicon: hibmc: Use HUAWEI PCI vendor ID macro Date: Sat, 22 Sep 2018 01:25:27 +0800 Message-ID: <1537550727-21257-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537550727-21257-1-git-send-email-john.garry@huawei.com> References: <1537550727-21257-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to use Huawei PCI vendor ID macro from pci_ids.h file. In addition, switch to use PCI_VDEVICE() instead of open coding. Signed-off-by: John Garry --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index d4f6f1f..79b6bda 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -402,7 +402,7 @@ static void hibmc_pci_remove(struct pci_dev *pdev) } static struct pci_device_id hibmc_pci_table[] = { - {0x19e5, 0x1711, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, + { PCI_VDEVICE(HUAWEI, 0x1711) }, {0,} };