]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
PCI/VPD: Add pci_vpd_find_ro_info_keyword()
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 18 Aug 2021 19:00:57 +0000 (21:00 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 20 Aug 2021 20:48:27 +0000 (15:48 -0500)
commit9e515c9f6c0b6f0ace6f5cf2202b527d745b494d
treefef7ba602eec9ebd6382f9052b541d0ce85f6574
parent76f3c032adad86aad26f8ad3eebc993b4ba32138
PCI/VPD: Add pci_vpd_find_ro_info_keyword()

All users of pci_vpd_find_info_keyword() are interested in the VPD RO
section only. In addition all calls are followed by the same activities to
calculate start of tag data area and size of the data area.

Add pci_vpd_find_ro_info_keyword() that combines these functionalities.

pci_vpd_find_info_keyword() can be phased out once all users are converted.

[bhelgaas: split pci_vpd_check_csum() to separate patch]
Link: https://lore.kernel.org/r/1643bd7a-088e-1028-c9b0-9d112cf48d63@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