mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: use PCI_VENDOR_ID_MEDIATEK to avoid open coded
Use PCI standard defines. Signed-off-by: Ryder Lee <[email protected]> Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
#include "mt7603.h"
|
#include "mt7603.h"
|
||||||
|
|
||||||
static const struct pci_device_id mt76pci_device_table[] = {
|
static const struct pci_device_id mt76pci_device_table[] = {
|
||||||
{ PCI_DEVICE(0x14c3, 0x7603) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7603) },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -13,9 +13,9 @@
|
|||||||
#include "mcu.h"
|
#include "mcu.h"
|
||||||
|
|
||||||
static const struct pci_device_id mt7615_pci_device_table[] = {
|
static const struct pci_device_id mt7615_pci_device_table[] = {
|
||||||
{ PCI_DEVICE(0x14c3, 0x7615) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7615) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7663) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7663) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7611) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7611) },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -221,9 +221,9 @@ mt76x0e_remove(struct pci_dev *pdev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct pci_device_id mt76x0e_device_table[] = {
|
static const struct pci_device_id mt76x0e_device_table[] = {
|
||||||
{ PCI_DEVICE(0x14c3, 0x7610) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7610) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7630) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7630) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7650) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7650) },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -10,9 +10,9 @@
|
|||||||
#include "mt76x2.h"
|
#include "mt76x2.h"
|
||||||
|
|
||||||
static const struct pci_device_id mt76x2e_device_table[] = {
|
static const struct pci_device_id mt76x2e_device_table[] = {
|
||||||
{ PCI_DEVICE(0x14c3, 0x7662) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7662) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7612) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7612) },
|
||||||
{ PCI_DEVICE(0x14c3, 0x7602) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7602) },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
#include "../trace.h"
|
#include "../trace.h"
|
||||||
|
|
||||||
static const struct pci_device_id mt7921_pci_device_table[] = {
|
static const struct pci_device_id mt7921_pci_device_table[] = {
|
||||||
{ PCI_DEVICE(0x14c3, 0x7961) },
|
{ PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x7961) },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user