drm/hisilicon: hibmc: Use HUAWEI PCI vendor ID macro
authorJohn Garry <john.garry@huawei.com>
Fri, 21 Sep 2018 17:25:27 +0000 (01:25 +0800)
committerXinliang Liu <xinliang.liu@linaro.org>
Wed, 26 Sep 2018 03:40:30 +0000 (11:40 +0800)
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 <john.garry@huawei.com>
Reviewed-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
Signed-off-by: Xinliang Liu <z.liuxinliang@hisilicon.com>
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c

index d4f6f1f9df5b73e06fd7f19999aa345f1b46798a..79b6bdafdc820c692bd5b9d4758c1a7fd40e5173 100644 (file)
@@ -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,}
 };