PCI/VPD: Add pci_vpd_find_id_string()
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 26 Aug 2021 18:55:43 +0000 (20:55 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 31 Aug 2021 21:08:15 +0000 (16:08 -0500)
commitacfbb1b8a494d7bfd316dfb363a820e6df637e8d
tree3e0cadbca3067d42af92ecb1f6f012a3a2d5b60f
parent46a347835cc50b04da0996a070939ed8927d69bd
PCI/VPD: Add pci_vpd_find_id_string()

Add a pci_vpd_find_id_string() API function to retrieve the ID string from
VPD.

This way callers don't need pci_vpd_lrdt_size() any longer, and it can be
made private to the VPD core.

Link: https://lore.kernel.org/r/c5225bf6-8d29-970d-e271-0d7b52252630@gmail.com
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vpd.c
include/linux/pci.h