bnx2x: Search VPD with pci_vpd_find_ro_info_keyword()
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 22 Aug 2021 13:54:23 +0000 (15:54 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 24 Aug 2021 18:40:12 +0000 (13:40 -0500)
commit3831cba07a4bf96bc75fb963451a49d7f676c7d6
treed8e653575290810bdf72a5d6c93cbcf033ddd26c
parentdf87589475e73b9e34369a075b6b5375f0daa7d6
bnx2x: 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.

Use strncasecmp() to match Vendor ID instead of comparing with lower- and
upper-case hex string.

[bhelgaas: convert to strncasecmp()]
Link: https://lore.kernel.org/r/a9f730cf-e31e-902b-7b39-0ff2e99636e0@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c