Commit ab12d8c7 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: remove warnings line over 80 characters

This patch removes the warnings reported by checkpatch.pl
for line over 80 characters.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7df0bb0d
...@@ -361,7 +361,8 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev) ...@@ -361,7 +361,8 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev)
dropped_acks++; dropped_acks++;
tqe->status = 1; tqe->status = 1;
if (tqe->tx_complete_func) if (tqe->tx_complete_func)
tqe->tx_complete_func(tqe->priv, tqe->status); tqe->tx_complete_func(tqe->priv,
tqe->status);
kfree(tqe); kfree(tqe);
dropped++; dropped++;
} }
...@@ -747,7 +748,8 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) ...@@ -747,7 +748,8 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
PRINT_D(TX_DBG, "VMM Size AFTER alignment = %d\n", vmm_sz); PRINT_D(TX_DBG, "VMM Size AFTER alignment = %d\n", vmm_sz);
vmm_table[i] = vmm_sz / 4; vmm_table[i] = vmm_sz / 4;
PRINT_D(TX_DBG, "VMMTable entry size = %d\n", vmm_table[i]); PRINT_D(TX_DBG, "VMMTable entry size = %d\n",
vmm_table[i]);
if (tqe->type == WILC_CFG_PKT) { if (tqe->type == WILC_CFG_PKT) {
vmm_table[i] |= BIT(10); vmm_table[i] |= BIT(10);
...@@ -883,7 +885,9 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) ...@@ -883,7 +885,9 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
#endif #endif
vmm_sz = (vmm_table[i] & 0x3ff); vmm_sz = (vmm_table[i] & 0x3ff);
vmm_sz *= 4; vmm_sz *= 4;
header = (tqe->type << 31) | (tqe->buffer_size << 15) | vmm_sz; header = (tqe->type << 31) |
(tqe->buffer_size << 15) |
vmm_sz;
if (tqe->type == WILC_MGMT_PKT) if (tqe->type == WILC_MGMT_PKT)
header |= BIT(30); header |= BIT(30);
else else
...@@ -904,12 +908,14 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) ...@@ -904,12 +908,14 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)
buffer_offset = HOST_HDR_OFFSET; buffer_offset = HOST_HDR_OFFSET;
} }
memcpy(&txb[offset + buffer_offset], tqe->buffer, tqe->buffer_size); memcpy(&txb[offset + buffer_offset],
tqe->buffer, tqe->buffer_size);
offset += vmm_sz; offset += vmm_sz;
i++; i++;
tqe->status = 1; tqe->status = 1;
if (tqe->tx_complete_func) if (tqe->tx_complete_func)
tqe->tx_complete_func(tqe->priv, tqe->status); tqe->tx_complete_func(tqe->priv,
tqe->status);
#ifdef TCP_ACK_FILTER #ifdef TCP_ACK_FILTER
if (tqe->index != NOT_TCP_ACK) if (tqe->index != NOT_TCP_ACK)
pending_acks_info[tqe->index].txqe = NULL; pending_acks_info[tqe->index].txqe = NULL;
...@@ -970,7 +976,8 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc) ...@@ -970,7 +976,8 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
} }
buffer = rqe->buffer; buffer = rqe->buffer;
size = rqe->buffer_size; size = rqe->buffer_size;
PRINT_D(RX_DBG, "rxQ entery Size = %d - Address = %p\n", size, buffer); PRINT_D(RX_DBG, "rxQ entery Size = %d - Address = %p\n",
size, buffer);
offset = 0; offset = 0;
do { do {
...@@ -983,7 +990,8 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc) ...@@ -983,7 +990,8 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
#ifdef BIG_ENDIAN #ifdef BIG_ENDIAN
header = BYTE_SWAP(header); header = BYTE_SWAP(header);
#endif #endif
PRINT_D(RX_DBG, "Header = %04x - Offset = %d\n", header, offset); PRINT_D(RX_DBG, "Header = %04x - Offset = %d\n",
header, offset);
is_cfg_packet = (header >> 31) & 0x1; is_cfg_packet = (header >> 31) & 0x1;
pkt_offset = (header >> 22) & 0x1ff; pkt_offset = (header >> 22) & 0x1ff;
...@@ -1000,7 +1008,9 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc) ...@@ -1000,7 +1008,9 @@ static void wilc_wlan_handle_rxq(struct wilc *wilc)
#define IS_MGMT_STATUS_SUCCES 0x040 #define IS_MGMT_STATUS_SUCCES 0x040
if (pkt_offset & IS_MANAGMEMENT) { if (pkt_offset & IS_MANAGMEMENT) {
pkt_offset &= ~(IS_MANAGMEMENT | IS_MANAGMEMENT_CALLBACK | IS_MGMT_STATUS_SUCCES); pkt_offset &= ~(IS_MANAGMEMENT |
IS_MANAGMEMENT_CALLBACK |
IS_MGMT_STATUS_SUCCES);
WILC_WFI_mgmt_rx(wilc, &buffer[offset + HOST_HDR_OFFSET], pkt_len); WILC_WFI_mgmt_rx(wilc, &buffer[offset + HOST_HDR_OFFSET], pkt_len);
} else { } else {
...@@ -1356,22 +1366,26 @@ int wilc_wlan_stop(void) ...@@ -1356,22 +1366,26 @@ int wilc_wlan_stop(void)
release_bus(RELEASE_ALLOW_SLEEP); release_bus(RELEASE_ALLOW_SLEEP);
return ret; return ret;
} }
PRINT_D(GENERIC_DBG, "Read RESET Reg %x : Retry%d\n", reg, timeout); PRINT_D(GENERIC_DBG, "Read RESET Reg %x : Retry%d\n",
reg, timeout);
if ((reg & BIT(10))) { if ((reg & BIT(10))) {
PRINT_D(GENERIC_DBG, "Bit 10 not reset : Retry %d\n", timeout); PRINT_D(GENERIC_DBG, "Bit 10 not reset : Retry %d\n",
timeout);
reg &= ~BIT(10); reg &= ~BIT(10);
ret = p->hif_func.hif_write_reg(WILC_GLB_RESET_0, reg); ret = p->hif_func.hif_write_reg(WILC_GLB_RESET_0, reg);
timeout--; timeout--;
} else { } else {
PRINT_D(GENERIC_DBG, "Bit 10 reset after : Retry %d\n", timeout); PRINT_D(GENERIC_DBG, "Bit 10 reset after : Retry %d\n",
timeout);
ret = p->hif_func.hif_read_reg(WILC_GLB_RESET_0, &reg); ret = p->hif_func.hif_read_reg(WILC_GLB_RESET_0, &reg);
if (!ret) { if (!ret) {
PRINT_ER("Error while reading reg\n"); PRINT_ER("Error while reading reg\n");
release_bus(RELEASE_ALLOW_SLEEP); release_bus(RELEASE_ALLOW_SLEEP);
return ret; return ret;
} }
PRINT_D(GENERIC_DBG, "Read RESET Reg %x : Retry%d\n", reg, timeout); PRINT_D(GENERIC_DBG, "Read RESET Reg %x : Retry%d\n",
reg, timeout);
break; break;
} }
...@@ -1492,7 +1506,8 @@ int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size, ...@@ -1492,7 +1506,8 @@ int wilc_wlan_cfg_set(int start, u32 wid, u8 *buffer, u32 buffer_size,
p->cfg_frame_offset = offset; p->cfg_frame_offset = offset;
if (commit) { if (commit) {
PRINT_D(TX_DBG, "[WILC]PACKET Commit with sequence number %d\n", p->cfg_seq_no); PRINT_D(TX_DBG, "[WILC]PACKET Commit with sequence number %d\n",
p->cfg_seq_no);
PRINT_D(RX_DBG, "Processing cfg_set()\n"); PRINT_D(RX_DBG, "Processing cfg_set()\n");
p->cfg_frame_in_use = 1; p->cfg_frame_in_use = 1;
...@@ -1641,21 +1656,24 @@ int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp) ...@@ -1641,21 +1656,24 @@ int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)
PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n"); PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n");
memset((void *)&g_wlan, 0, sizeof(wilc_wlan_dev_t)); memset((void *)&g_wlan, 0, sizeof(wilc_wlan_dev_t));
memcpy((void *)&g_wlan.io_func, (void *)&inp->io_func, sizeof(wilc_wlan_io_func_t)); memcpy((void *)&g_wlan.io_func, (void *)&inp->io_func,
sizeof(wilc_wlan_io_func_t));
if ((inp->io_func.io_type & 0x1) == HIF_SDIO) { if ((inp->io_func.io_type & 0x1) == HIF_SDIO) {
if (!hif_sdio.hif_init(inp, wilc_debug)) { if (!hif_sdio.hif_init(inp, wilc_debug)) {
ret = -5; ret = -5;
goto _fail_; goto _fail_;
} }
memcpy((void *)&g_wlan.hif_func, &hif_sdio, sizeof(wilc_hif_func_t)); memcpy((void *)&g_wlan.hif_func, &hif_sdio,
sizeof(wilc_hif_func_t));
} else { } else {
if ((inp->io_func.io_type & 0x1) == HIF_SPI) { if ((inp->io_func.io_type & 0x1) == HIF_SPI) {
if (!hif_spi.hif_init(inp, wilc_debug)) { if (!hif_spi.hif_init(inp, wilc_debug)) {
ret = -5; ret = -5;
goto _fail_; goto _fail_;
} }
memcpy((void *)&g_wlan.hif_func, &hif_spi, sizeof(wilc_hif_func_t)); memcpy((void *)&g_wlan.hif_func, &hif_spi,
sizeof(wilc_hif_func_t));
} else { } else {
ret = -5; ret = -5;
goto _fail_; goto _fail_;
......
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