Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp70910imm; Fri, 21 Sep 2018 10:28:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZcYQCvIzciBm6H7GnY7E6IRaMDXmBXezZ/f2iurkwwu6SbMCp/HGrV3N5XgGzzu9q/8qpQ X-Received: by 2002:a62:280a:: with SMTP id o10-v6mr47308295pfo.129.1537550920409; Fri, 21 Sep 2018 10:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537550920; cv=none; d=google.com; s=arc-20160816; b=Yg1a99CMl9HAJeqagqOWJzRwBX7+kSlBAAUAMQo2GKupozheGdl3/zlb6je3D+VGWF XPazCyZLbt0CSbSAJ8B70sxwMjWFBNxA9rqt0pLZUzApAI9zw+NTI14+eYlZpAvbMfzk jKvPgd30255Eez+s61DBWZGC4d9+ckdSqWthNr7F8Zo64kxpucG071V//dXbbZU8PZFR UNrWhl7v2ErAWnJ6aAtIP6E2H6Pq+ZvZ8NavMGGANwNcQL1wSbnN8jD9z+KQG8skY+q6 3Gp6RvJ7AgPJAdBqLKF8z9izLNSEeL8nDOQzkosFPqNR4n07sohlSK1Hx75NZzjsqrq3 EMeA== 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 c3-v6si29177318pfg.181.2018.09.21.10.28.24; Fri, 21 Sep 2018 10:28:40 -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 S2391030AbeIUXSG (ORCPT + 99 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 Content-Type: text/plain 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(-) 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,} }; -- 1.9.1