Skip to contentSkip to conversation

PCI: fix trivial comment for __pci_disable_link_state

PATCH In review Yijing Wang 2 participants 2 messages May 28, 2013 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: fix trivial comment for __pci_disable_link_state

Fix trivial comments for __pci_disble_link_state

---
 drivers/pci/pcie/aspm.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
drivers/pci/pcie/aspm.c +6 -4
index faa83b6..c7fd56b 100644
@@ -714,10 +714,6 @@ void pcie_aspm_powersave_config_link(struct pci_dev *pdev)
 	up_read(&pci_bus_sem);
 }
 
-/*
- * pci_disable_link_state - disable pci device's link state, so the link will
- * never enter specific states
- */
 static void __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem,
 				     bool force)
 {
@@ -771,6 +767,12 @@ void pci_disable_link_state_locked(struct pci_dev *pdev, int state)
 }
 EXPORT_SYMBOL(pci_disable_link_state_locked);
 
+/**
+ * pci_disable_link_state - disable pci device's link state, so the link will
+ * never enter specific states
+ * @pdev: PCI device on the link.
+ * @state: ASPM link state to disable
+ */
 void pci_disable_link_state(struct pci_dev *pdev, int state)
 {
 	__pci_disable_link_state(pdev, state, true, false);
Signature · 1 line
1.7.1
maintainer
#1 lore raw
Quoted 6 lines · Yijing Wang

Fix trivial comments for __pci_disble_link_state

---
 drivers/pci/pcie/aspm.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

Applied (with typo fixes and expanded comment) to pci/misc for v3.11, thanks.

Quoted 32 lines
drivers/pci/pcie/aspm.c +6 -5
index faa83b6..c7fd56b 100644
@@ -714,10 +714,6 @@ void pcie_aspm_powersave_config_link(struct pci_dev *pdev)
        up_read(&pci_bus_sem);
 }
 
-/*
- * pci_disable_link_state - disable pci device's link state, so the link will
- * never enter specific states
- */
 static void __pci_disable_link_state(struct pci_dev *pdev, int state, bool sem,
                                     bool force)
 {
@@ -771,6 +767,12 @@ void pci_disable_link_state_locked(struct pci_dev *pdev, int state)
 }
 EXPORT_SYMBOL(pci_disable_link_state_locked);
 
+/**
+ * pci_disable_link_state - disable pci device's link state, so the link will
+ * never enter specific states
+ * @pdev: PCI device on the link.
+ * @state: ASPM link state to disable
+ */
 void pci_disable_link_state(struct pci_dev *pdev, int state)
 {
        __pci_disable_link_state(pdev, state, true, false);
--

1.7.1