linux/drivers/net/ethernet/intel/fm10k
Uwe Kleine-König (The Capable Hub) 733334d6bd net: Consistently define pci_device_ids using named initializers
... and PCI device helpers.

The various struct pci_device_id arrays were initialized mostly by one
the PCI_DEVICE macros and then list expressions. The latter isn't easily
readable if you're not into PCI. Using named initializers is more
explicit and thus easier to parse.

Also use PCI_DEVICE* helper macros to assign .vendor, .device,
.subvendor and .subdevice where appropriate and skip explicit
assignments of 0 (which the compiler takes care of).

The secret plan is to make struct pci_device_id::driver_data an
anonymous union (similar to
https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre.com/)
and that requires named initializers. But it's also a nice cleanup on
its own.

This change doesn't introduce changes to the compiled pci_device_id
arrays. Tested on x86 and arm64.

Reviewed-by: Jijie Shao <shaojijie@huawei.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Petr Machata <petrm@nvidia.com> # for mlxsw
Acked-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Forwarded: id:76da4f44d48bdde84580963862bf9616bee5c9e9.1778149923.git.u.kleine-koenig@baylibre.com (v2)
Reviewed-by: Michael Grzeschik <mgr@kernel.org>
Link: https://patch.msgid.link/20260511090023.1634387-6-u.kleine-koenig@baylibre.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-05-12 18:16:34 -07:00
..
fm10k_common.c net: intel: fm10k: Fix parameter idx set but not used 2025-09-19 08:42:08 -07:00
fm10k_common.h net: intel: fm10k: Fix parameter idx set but not used 2025-09-19 08:42:08 -07:00
fm10k_dcbnl.c
fm10k_debugfs.c
fm10k_ethtool.c fm10k: extract GRXRINGS from .get_rxnfc 2025-11-26 17:09:10 -08:00
fm10k_iov.c
fm10k_main.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
fm10k_mbx.c
fm10k_mbx.h
fm10k_netdev.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
fm10k_pci.c net: Consistently define pci_device_ids using named initializers 2026-05-12 18:16:34 -07:00
fm10k_pf.c net: intel: fm10k: Fix parameter idx set but not used 2025-09-19 08:42:08 -07:00
fm10k_pf.h intel/fm10k: Remove unused fm10k_iov_msg_mac_vlan_pf 2025-01-07 18:16:02 -08:00
fm10k_tlv.c
fm10k_tlv.h
fm10k_type.h
fm10k_vf.c net: intel: fm10k: Fix parameter idx set but not used 2025-09-19 08:42:08 -07:00
fm10k_vf.h
fm10k.h ethernet: intel: fix building with large NR_CPUS 2025-07-15 13:01:15 -07:00
Makefile