summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/google
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2021-08-22 16:53:23 +0300
committerBjorn Helgaas <bhelgaas@google.com>2021-08-24 19:53:48 +0300
commitdf87589475e73b9e34369a075b6b5375f0daa7d6 (patch)
tree9ea262ff4c7a19705b1fbed105139b87e9953e26 /drivers/net/ethernet/google
parent35e7f1be7972be8da9d0a37bd89bcc4b990c6e67 (diff)
downloadlinux-df87589475e73b9e34369a075b6b5375f0daa7d6.tar.xz
bnx2x: Read VPD with pci_vpd_alloc()
Use pci_vpd_alloc() to dynamically allocate a properly sized buffer and read the full VPD data into it. This simplifies the code, and we no longer have to make assumptions about VPD size. Link: https://lore.kernel.org/r/821a334d-ff9d-386e-5f42-9b620ab3dbfa@gmail.com Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/google')
0 files changed, 0 insertions, 0 deletions