]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/pci_hotplug.h
PCI, PCI Hotplug: introduce slot_name helpers
[karo-tx-linux.git] / include / linux / pci_hotplug.h
index 5efba6671865e8047732ece8662680293d8d17bd..a3a3245943b1aaf2ccc9c30267bd5bd5a97144d3 100644 (file)
@@ -165,6 +165,11 @@ struct hotplug_slot {
 };
 #define to_hotplug_slot(n) container_of(n, struct hotplug_slot, kobj)
 
+static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)
+{
+       return pci_slot_name(slot->pci_slot);
+}
+
 extern int pci_hp_register(struct hotplug_slot *, struct pci_bus *, int nr,
                           const char *name);
 extern int pci_hp_deregister(struct hotplug_slot *slot);