mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
ixgbevf: use PCI_DEVICE_TABLE macro
Makes PCI id table const. Reformat to match table in ixgbe_main.c Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Greg Rose <gregory.v.rose@intel.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
e757e3e198
commit
39ba22b413
@ -76,12 +76,9 @@ static const struct ixgbevf_info *ixgbevf_info_tbl[] = {
|
|||||||
* { Vendor ID, Device ID, SubVendor ID, SubDevice ID,
|
* { Vendor ID, Device ID, SubVendor ID, SubDevice ID,
|
||||||
* Class, Class Mask, private data (not used) }
|
* Class, Class Mask, private data (not used) }
|
||||||
*/
|
*/
|
||||||
static struct pci_device_id ixgbevf_pci_tbl[] = {
|
static DEFINE_PCI_DEVICE_TABLE(ixgbevf_pci_tbl) = {
|
||||||
{PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82599_VF),
|
{PCI_VDEVICE(INTEL, IXGBE_DEV_ID_82599_VF), board_82599_vf },
|
||||||
board_82599_vf},
|
{PCI_VDEVICE(INTEL, IXGBE_DEV_ID_X540_VF), board_X540_vf },
|
||||||
{PCI_VDEVICE(INTEL, IXGBE_DEV_ID_X540_VF),
|
|
||||||
board_X540_vf},
|
|
||||||
|
|
||||||
/* required last entry */
|
/* required last entry */
|
||||||
{0, }
|
{0, }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user