tg3: Search VPD with pci_vpd_find_ro_info_keyword()
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 18 Aug 2021 19:06:40 +0000 (21:06 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Aug 2021 20:49:01 +0000 (15:49 -0500)
commit466a79f417be2f2b0d875a9766a3cff10c3bedf1
treee208af62471da9c43c845298eb38936f3db29a10
parent8d6ab5c5accd1a808b51a69bafa441cedf66006f
tg3: Search VPD with pci_vpd_find_ro_info_keyword()

Use pci_vpd_find_ro_info_keyword() to search for keywords in VPD to
simplify the code.

Link: https://lore.kernel.org/r/0ae9d4c0-590d-682a-a0af-2272e5f71630@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/net/ethernet/broadcom/tg3.c