Commit bb72dd53 authored by Alex W Slater's avatar Alex W Slater Committed by Greg Kroah-Hartman

staging: vt6655: Cleanup C99 comments

Fix checkpatch.pl errors:

"ERROR: do not use C99 // comments"
Signed-off-by: default avatarAlex W Slater <alex.slater.dev@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7e59b047
...@@ -64,9 +64,9 @@ ...@@ -64,9 +64,9 @@
#include <linux/slab.h> #include <linux/slab.h>
/*--------------------- Static Definitions -------------------------*/ /*--------------------- Static Definitions -------------------------*/
// /*
// Define module options * Define module options
// */
MODULE_AUTHOR("VIA Networking Technologies, Inc., <lyndonchen@vntek.com.tw>"); MODULE_AUTHOR("VIA Networking Technologies, Inc., <lyndonchen@vntek.com.tw>");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"); MODULE_DESCRIPTION("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver");
...@@ -126,9 +126,9 @@ DEVICE_PARAM(LongRetryLimit, "long frame retry limits"); ...@@ -126,9 +126,9 @@ DEVICE_PARAM(LongRetryLimit, "long frame retry limits");
DEVICE_PARAM(BasebandType, "baseband type"); DEVICE_PARAM(BasebandType, "baseband type");
// /*
// Static vars definitions * Static vars definitions
// */
static CHIP_INFO chip_info_table[] = { static CHIP_INFO chip_info_table[] = {
{ VT3253, "VIA Networking Solomon-A/B/G Wireless LAN Adapter ", { VT3253, "VIA Networking Solomon-A/B/G Wireless LAN Adapter ",
256, 1, DEVICE_FLAGS_IP_ALIGN|DEVICE_FLAGS_TX_ALIGN }, 256, 1, DEVICE_FLAGS_IP_ALIGN|DEVICE_FLAGS_TX_ALIGN },
...@@ -231,9 +231,9 @@ device_set_options(struct vnt_private *pDevice) ...@@ -231,9 +231,9 @@ device_set_options(struct vnt_private *pDevice)
pr_debug(" byBBType= %d\n", (int)pDevice->byBBType); pr_debug(" byBBType= %d\n", (int)pDevice->byBBType);
} }
// /*
// Initialisation of MAC & BBP registers * Initialisation of MAC & BBP registers
// */
static void device_init_registers(struct vnt_private *pDevice) static void device_init_registers(struct vnt_private *pDevice)
{ {
...@@ -584,7 +584,7 @@ static bool device_init_rings(struct vnt_private *pDevice) ...@@ -584,7 +584,7 @@ static bool device_init_rings(struct vnt_private *pDevice)
pDevice->td1_pool_dma = pDevice->td0_pool_dma + pDevice->td1_pool_dma = pDevice->td0_pool_dma +
pDevice->sOpts.nTxDescs[0] * sizeof(STxDesc); pDevice->sOpts.nTxDescs[0] * sizeof(STxDesc);
// vir_pool: pvoid type /* vir_pool: pvoid type */
pDevice->apTD0Rings = vir_pool pDevice->apTD0Rings = vir_pool
+ pDevice->sOpts.nRxDescs0 * sizeof(SRxDesc) + pDevice->sOpts.nRxDescs0 * sizeof(SRxDesc)
+ pDevice->sOpts.nRxDescs1 * sizeof(SRxDesc); + pDevice->sOpts.nRxDescs1 * sizeof(SRxDesc);
...@@ -943,7 +943,7 @@ static int device_tx_srv(struct vnt_private *pDevice, unsigned int uIdx) ...@@ -943,7 +943,7 @@ static int device_tx_srv(struct vnt_private *pDevice, unsigned int uIdx)
byTsr0 = pTD->m_td0TD0.byTSR0; byTsr0 = pTD->m_td0TD0.byTSR0;
byTsr1 = pTD->m_td0TD0.byTSR1; byTsr1 = pTD->m_td0TD0.byTSR1;
//Only the status of first TD in the chain is correct /* Only the status of first TD in the chain is correct */
if (pTD->m_td1TD1.byTCR & TCR_STP) { if (pTD->m_td1TD1.byTCR & TCR_STP) {
if ((pTD->pTDInfo->byFlags & TD_FLAGS_NETIF_SKB) != 0) { if ((pTD->pTDInfo->byFlags & TD_FLAGS_NETIF_SKB) != 0) {
...@@ -992,7 +992,7 @@ static void device_free_tx_buf(struct vnt_private *pDevice, PSTxDesc pDesc) ...@@ -992,7 +992,7 @@ static void device_free_tx_buf(struct vnt_private *pDevice, PSTxDesc pDesc)
PDEVICE_TD_INFO pTDInfo = pDesc->pTDInfo; PDEVICE_TD_INFO pTDInfo = pDesc->pTDInfo;
struct sk_buff *skb = pTDInfo->skb; struct sk_buff *skb = pTDInfo->skb;
// pre-allocated buf_dma can't be unmapped. /* pre-allocated buf_dma can't be unmapped. */
if (pTDInfo->skb_dma && (pTDInfo->skb_dma != pTDInfo->buf_dma)) { if (pTDInfo->skb_dma && (pTDInfo->skb_dma != pTDInfo->buf_dma)) {
pci_unmap_single(pDevice->pcid, pTDInfo->skb_dma, skb->len, pci_unmap_single(pDevice->pcid, pTDInfo->skb_dma, skb->len,
PCI_DMA_TODEVICE); PCI_DMA_TODEVICE);
...@@ -1084,7 +1084,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance) ...@@ -1084,7 +1084,7 @@ static irqreturn_t device_intr(int irq, void *dev_instance)
spin_lock_irqsave(&pDevice->lock, flags); spin_lock_irqsave(&pDevice->lock, flags);
//Make sure current page is 0 /* Make sure current page is 0 */
VNSvInPortB(pDevice->PortOffset + MAC_REG_PAGE1SEL, &byOrgPageSel); VNSvInPortB(pDevice->PortOffset + MAC_REG_PAGE1SEL, &byOrgPageSel);
if (byOrgPageSel == 1) if (byOrgPageSel == 1)
MACvSelectPage0(pDevice->PortOffset); MACvSelectPage0(pDevice->PortOffset);
...@@ -1092,10 +1092,12 @@ static irqreturn_t device_intr(int irq, void *dev_instance) ...@@ -1092,10 +1092,12 @@ static irqreturn_t device_intr(int irq, void *dev_instance)
byOrgPageSel = 0; byOrgPageSel = 0;
MACvReadMIBCounter(pDevice->PortOffset, &dwMIBCounter); MACvReadMIBCounter(pDevice->PortOffset, &dwMIBCounter);
// TBD.... /*
// Must do this after doing rx/tx, cause ISR bit is slow * TBD....
// than RD/TD write back * Must do this after doing rx/tx, cause ISR bit is slow
// update ISR counter * than RD/TD write back
* update ISR counter
*/
STAvUpdate802_11Counter(&pDevice->s802_11Counter, &pDevice->scStatistic, dwMIBCounter); STAvUpdate802_11Counter(&pDevice->s802_11Counter, &pDevice->scStatistic, dwMIBCounter);
while (pDevice->dwIsr != 0) { while (pDevice->dwIsr != 0) {
STAvUpdateIsrStatCounter(&pDevice->scStatistic, pDevice->dwIsr); STAvUpdateIsrStatCounter(&pDevice->scStatistic, pDevice->dwIsr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment