diff mbox

PCI: fix trivial comment for __pci_disable_link_state

Message ID 1369728202-31188-1-git-send-email-wangyijing@huawei.com
State Accepted
Headers show

Commit Message

Yijing Wang May 28, 2013, 8:03 a.m. UTC
Fix trivial comments for __pci_disble_link_state

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
 drivers/pci/pcie/aspm.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

Comments

Bjorn Helgaas May 28, 2013, 5:25 p.m. UTC | #1
On Tue, May 28, 2013 at 2:03 AM, Yijing Wang <wangyijing@huawei.com> wrote:
> Fix trivial comments for __pci_disble_link_state
>
> Signed-off-by: Yijing Wang <wangyijing@huawei.com>
> ---
>  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.

> diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
> index faa83b6..c7fd56b 100644
> --- a/drivers/pci/pcie/aspm.c
> +++ b/drivers/pci/pcie/aspm.c
> @@ -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
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
index faa83b6..c7fd56b 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -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);