Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: vt6655: Replace C99 comments in power.c and upc.h.

This patch fixes the following checkpatch.pl warnings:

ERROR: do not use C99 // comments
+//

ERROR: do not use C99 // comments
+// For memory mapped IO

ERROR: do not use C99 // comments
+//

ERROR: do not use C99 // comments
+#endif // __UPC_H__

ERROR: do not use C99 // comments
+ // set period of power up before TBTT

ERROR: do not use C99 // comments
+ // set AID

ERROR: do not use C99 // comments
+ // set ATIM Window

ERROR: do not use C99 // comments
+ // Set AutoSleep

ERROR: do not use C99 // comments
+ // Set HWUTSF

ERROR: do not use C99 // comments
+ // clear always listen beacon

ERROR: do not use C99 // comments
+ // first time set listen next beacon

ERROR: do not use C99 // comments
+ // always listen beacon

ERROR: do not use C99 // comments
+ // enable power saving hw function

ERROR: do not use C99 // comments
+ // disable power saving hw function

ERROR: do not use C99 // comments
+ //clear AutoSleep

ERROR: do not use C99 // comments
+ //clear HWUTSF

ERROR: do not use C99 // comments
+ // set always listen beacon

Signed-off-by: Nicholas Parkanyi <n.parkanyi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nicholas Parkanyi and committed by
Greg Kroah-Hartman
c3dd5a08 73c4c6ee

+17 -17
+13 -13
drivers/staging/vt6655/power.c
··· 71 71 struct vnt_private *pDevice = hDeviceContext; 72 72 u16 wAID = pDevice->current_aid | BIT(14) | BIT(15); 73 73 74 - // set period of power up before TBTT 74 + /* set period of power up before TBTT */ 75 75 VNSvOutPortW(pDevice->PortOffset + MAC_REG_PWBT, C_PWBT); 76 76 if (pDevice->op_mode != NL80211_IFTYPE_ADHOC) { 77 - // set AID 77 + /* set AID */ 78 78 VNSvOutPortW(pDevice->PortOffset + MAC_REG_AIDATIM, wAID); 79 79 } else { 80 - // set ATIM Window 80 + /* set ATIM Window */ 81 81 #if 0 /* TODO atim window */ 82 82 MACvWriteATIMW(pDevice->PortOffset, pMgmt->wCurrATIMWindow); 83 83 #endif 84 84 } 85 - // Set AutoSleep 85 + /* Set AutoSleep */ 86 86 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); 87 - // Set HWUTSF 87 + /* Set HWUTSF */ 88 88 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); 89 89 90 90 if (wListenInterval >= 2) { 91 - // clear always listen beacon 91 + /* clear always listen beacon */ 92 92 MACvRegBitsOff(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); 93 - // first time set listen next beacon 93 + /* first time set listen next beacon */ 94 94 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_LNBCN); 95 95 } else { 96 - // always listen beacon 96 + /* always listen beacon */ 97 97 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); 98 98 } 99 99 100 - // enable power saving hw function 100 + /* enable power saving hw function */ 101 101 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_PSEN); 102 102 pDevice->bEnablePSMode = true; 103 103 ··· 122 122 { 123 123 struct vnt_private *pDevice = hDeviceContext; 124 124 125 - // disable power saving hw function 125 + /* disable power saving hw function */ 126 126 MACbPSWakeup(pDevice->PortOffset); 127 - //clear AutoSleep 127 + /* clear AutoSleep */ 128 128 MACvRegBitsOff(pDevice->PortOffset, MAC_REG_PSCFG, PSCFG_AUTOSLEEP); 129 - //clear HWUTSF 129 + /* clear HWUTSF */ 130 130 MACvRegBitsOff(pDevice->PortOffset, MAC_REG_TFTCTL, TFTCTL_HWUTSF); 131 - // set always listen beacon 131 + /* set always listen beacon */ 132 132 MACvRegBitsOn(pDevice->PortOffset, MAC_REG_PSCTL, PSCTL_ALBCN); 133 133 134 134 pDevice->bEnablePSMode = false;
+4 -4
drivers/staging/vt6655/upc.h
··· 33 33 34 34 /*--------------------- Export Definitions -------------------------*/ 35 35 36 - // 37 - // For memory mapped IO 38 - // 36 + 37 + /* For memory mapped IO */ 38 + 39 39 40 40 #define VNSvInPortB(dwIOAddress, pbyData) \ 41 41 do { \ ··· 86 86 87 87 /*--------------------- Export Functions --------------------------*/ 88 88 89 - #endif // __UPC_H__ 89 + #endif /* __UPC_H__ */