diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-03 18:37:35 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-05 11:40:29 -0500 |
commit | 454481adf54417ef59b97e92ccb3dc69f3cd02c7 (patch) | |
tree | 8e17bda23c855c517963a4db9bdcd1ebc180ff02 | |
parent | 1c0c5443de5f1f03ae2abce569fb673377f0fd0e (diff) |
ACPI / hotplug / PCI: Proper kerneldoc comments for enumeration/removal
Add proper kerneldoc comments describing acpiphp_enumerate_slots()
and acpiphp_remove_slots().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index f24c19c8f8c4..4bc716b2bbaa 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -1001,9 +1001,12 @@ static void handle_hotplug_event(acpi_handle handle, u32 type, void *data) | |||
1001 | acpi_evaluate_hotplug_ost(handle, type, ost_code, NULL); | 1001 | acpi_evaluate_hotplug_ost(handle, type, ost_code, NULL); |
1002 | } | 1002 | } |
1003 | 1003 | ||
1004 | /* | 1004 | /** |
1005 | * Create hotplug slots for the PCI bus. | 1005 | * acpiphp_enumerate_slots - Enumerate PCI slots for a given bus. |
1006 | * It should always return 0 to avoid skipping following notifiers. | 1006 | * @bus: PCI bus to enumerate the slots for. |
1007 | * | ||
1008 | * A "slot" is an object associated with a PCI device number. All functions | ||
1009 | * (PCI devices) with the same bus and device number belong to the same slot. | ||
1007 | */ | 1010 | */ |
1008 | void acpiphp_enumerate_slots(struct pci_bus *bus) | 1011 | void acpiphp_enumerate_slots(struct pci_bus *bus) |
1009 | { | 1012 | { |
@@ -1076,7 +1079,10 @@ void acpiphp_enumerate_slots(struct pci_bus *bus) | |||
1076 | } | 1079 | } |
1077 | } | 1080 | } |
1078 | 1081 | ||
1079 | /* Destroy hotplug slots associated with the PCI bus */ | 1082 | /** |
1083 | * acpiphp_remove_slots - Remove slot objects associated with a given bus. | ||
1084 | * @bus: PCI bus to remove the slot objects for. | ||
1085 | */ | ||
1080 | void acpiphp_remove_slots(struct pci_bus *bus) | 1086 | void acpiphp_remove_slots(struct pci_bus *bus) |
1081 | { | 1087 | { |
1082 | struct acpiphp_bridge *bridge; | 1088 | struct acpiphp_bridge *bridge; |