summaryrefslogtreecommitdiff
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorPhilipp Stanner <pstanner@redhat.com>2024-06-13 13:50:21 +0200
committerKrzysztof Wilczyński <kwilczynski@kernel.org>2024-07-10 04:20:10 +0000
commit1b9469cf15976a7cb7378caaa8a1772e7901514d (patch)
treed09307e9385480304e1512d532da69847aeae53b /drivers/pci/pci.h
parent77f79ac8de0f490fca4f0a5f2e1e38eeee191f05 (diff)
downloadlinux-1b9469cf15976a7cb7378caaa8a1772e7901514d.tar.gz
linux-1b9469cf15976a7cb7378caaa8a1772e7901514d.tar.bz2
linux-1b9469cf15976a7cb7378caaa8a1772e7901514d.zip
PCI: Move struct pci_devres.pinned bit to struct pci_dev
The bit describing whether the PCI device is currently pinned is stored in struct pci_devres. To clean up and simplify the PCI devres API, it's better if this information is stored in struct pci_dev. This will later permit simplifying pcim_enable_device(). Move the 'pinned' boolean bit to struct pci_dev. Restructure bits in struct pci_dev so the pm / pme fields are next to each other. Link: https://lore.kernel.org/r/20240613115032.29098-9-pstanner@redhat.com Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r--drivers/pci/pci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 4f220bbbd4ae..eb1eb4c7c34a 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -821,7 +821,6 @@ static inline pci_power_t mid_pci_get_power_state(struct pci_dev *pdev)
* then remove them from here.
*/
struct pci_devres {
- unsigned int pinned:1;
unsigned int orig_intx:1;
unsigned int restore_intx:1;
unsigned int mwi:1;