Skip to contentSkip to conversation

staging: rtlwifi: remove duplicated macros in comments

PATCH In review Matthew Giassa 2 participants 2 messages Oct 5, 2017 – Oct 18, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtlwifi: remove duplicated macros in comments

Removing a comment that duplicates definitions for pci_power_t enumeration, and pointing to the relevant header file (current comment is also missing PCI_POWER_ERROR).

---
 drivers/staging/rtlwifi/pci.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rtlwifi/pci.c +1 -6
index 4035b88..2e2cd21 100644
@@ -2456,12 +2456,7 @@ void rtl_pci_disconnect(struct pci_dev *pdev)
 #ifdef CONFIG_PM_SLEEP
 /***************************************
  * kernel pci power state define:
- * PCI_D0         ((pci_power_t __force) 0)
- * PCI_D1         ((pci_power_t __force) 1)
- * PCI_D2         ((pci_power_t __force) 2)
- * PCI_D3hot      ((pci_power_t __force) 3)
- * PCI_D3cold     ((pci_power_t __force) 4)
- * PCI_UNKNOWN    ((pci_power_t __force) 5)
+ * Refer to include/linux/pci.h
 
  * This function is called when system
  * goes into suspend state mac80211 will
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 14 lines · Matthew Giassa

Removing a comment that duplicates definitions for pci_power_t enumeration, and pointing to the relevant header file (current comment is also missing PCI_POWER_ERROR).

---
 drivers/staging/rtlwifi/pci.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/staging/rtlwifi/pci.c +0 -0
index 4035b88..2e2cd21 100644

drivers/staging/rtlwifi/pci.c void rtl_pci_disconnect(struct pci_dev *pdev) · line 2459

Quoted 10 lines
drivers/staging/rtlwifi/pci.c +1 -6
@@ -2456,12 +2456,7 @@ void rtl_pci_disconnect(struct pci_dev *pdev)
 #ifdef CONFIG_PM_SLEEP
 /***************************************
  * kernel pci power state define:
- * PCI_D0         ((pci_power_t __force) 0)
- * PCI_D1         ((pci_power_t __force) 1)
- * PCI_D2         ((pci_power_t __force) 2)
- * PCI_D3hot      ((pci_power_t __force) 3)
- * PCI_D3cold     ((pci_power_t __force) 4)
- * PCI_UNKNOWN    ((pci_power_t __force) 5)
+ * Refer to include/linux/pci.h

That's really vague, how about just deleting these lines, and the previous one as well?

thanks,

greg k-h