OSDN Git Service

x86/PCI: Add to_pci_sysdata() helper
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jan 2020 13:37:45 +0000 (06:37 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Jan 2020 20:54:08 +0000 (14:54 -0600)
commitaad6aa0cd674b7935957354666f82e5b2cdc813d
treedd5d00a559f488e8da51c4b6df713a6628248793
parente42617b825f8073569da76dc4510bfa019b1c35a
x86/PCI: Add to_pci_sysdata() helper

Various helpers need the pci_sysdata just to dereference a single field in
it.  Add a little helper that returns the properly typed sysdata pointer to
require a little less boilerplate code.

[jonathan.derrick: to_pci_sysdata const argument]
Link: https://lore.kernel.org/r/1579613871-301529-2-git-send-email-jonathan.derrick@intel.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
arch/x86/include/asm/pci.h