Re: [PATCH 1/2] staging: dgnc: fix 'line over 80 characters'

2016-03-25 Thread Joe Perches
On Fri, 2016-03-25 at 14:42 +0900, DaeSeok Youn wrote:
> 2016-03-25 12:19 GMT+09:00 Joe Perches :
> > On Fri, 2016-03-25 at 11:44 +0900, Daeseok Youn wrote:
> > > fix checkpatch.pl warning about 'line over 80 characters'
> > > in dgnc_neo.c
[]
> > > diff --git a/drivers/staging/dgnc/dgnc_neo.c 
> > > b/drivers/staging/dgnc/dgnc_neo.c
[]
> > > @@ -116,7 +117,8 @@ static inline void neo_set_cts_flow_control(struct 
> > > channel_t *ch)
> > >   writeb(efr, &ch->ch_neo_uart->efr);
> > > 
> > >   /* Turn on table D, with 8 char hi/low watermarks */
> > > - writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY), 
> > > &ch->ch_neo_uart->fctr);
> > > + writeb((UART_17158_FCTR_TRGD | UART_17158_FCTR_RTS_4DELAY),
> > > + &ch->ch_neo_uart->fctr);
> > You could remove parentheses here around the CONST | CONST
> OK. I got it. but it also, I will send a patch after fixing this, not
> in this, right?

Right.

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: rtl8192e: add more information to Kconfig

2016-03-25 Thread deutschluz
The warnings were originating in the Kconfig file and were
essentially, asking for more information to display. A quick google
search returned the patch that separated the rtl driver from 2011
into several separate drivers in order to comply with a certain
IEEE standard.

Signed-off-by: Luz Angel Orejel 
---
 drivers/staging/rtl8192e/Kconfig |   11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192e/Kconfig b/drivers/staging/rtl8192e/Kconfig
index 4602a47..cc800a3 100644
--- a/drivers/staging/rtl8192e/Kconfig
+++ b/drivers/staging/rtl8192e/Kconfig
@@ -17,7 +17,10 @@ config RTLLIB_CRYPTO_CCMP
select CRYPTO_AES
default y
---help---
- CCMP crypto driver for rtllib.
+ CCMP crypto driver for rtllib. This makes
+  the driver compliant with the IEEE 80211i
+  standard. Refer to said standard for more
+  details.
 
  If you enabled RTLLIB, you want this.
 
@@ -28,7 +31,9 @@ config RTLLIB_CRYPTO_TKIP
select CRYPTO_MICHAEL_MIC
default y
---help---
- TKIP crypto driver for rtllib.
+ TKIP crypto driver for rtllib.This makes
+  the driver comply with IEEE 80211i standard.
+  Refer to said standard for further details.
 
  If you enabled RTLLIB, you want this.
 
@@ -39,6 +44,8 @@ config RTLLIB_CRYPTO_WEP
default y
---help---
  TKIP crypto driver for rtllib.
+  This makes the driver comply with IEEE
+  80211i standard.
 
  If you enabled RTLLIB, you want this.
 
-- 
1.7.10.4

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: rtl8192e: add more information to Kconfig

2016-03-25 Thread deutschluz
The warnings were originating in the Kconfig file and were
essentially, asking for more information to display. A quick google
search returned the patch that separated the rtl driver from 2011
into several separate drivers in order to comply with a certain
IEEE standard.

Signed-off-by: Luz Angel Orejel 
---
 drivers/staging/rtl8192e/Kconfig |   11 +--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192e/Kconfig b/drivers/staging/rtl8192e/Kconfig
index 4602a47..cc800a3 100644
--- a/drivers/staging/rtl8192e/Kconfig
+++ b/drivers/staging/rtl8192e/Kconfig
@@ -17,7 +17,10 @@ config RTLLIB_CRYPTO_CCMP
select CRYPTO_AES
default y
---help---
- CCMP crypto driver for rtllib.
+ CCMP crypto driver for rtllib. This makes
+  the driver compliant with the IEEE 80211i
+  standard. Refer to said standard for more
+  details.
 
  If you enabled RTLLIB, you want this.
 
@@ -28,7 +31,9 @@ config RTLLIB_CRYPTO_TKIP
select CRYPTO_MICHAEL_MIC
default y
---help---
- TKIP crypto driver for rtllib.
+ TKIP crypto driver for rtllib.This makes
+  the driver comply with IEEE 80211i standard.
+  Refer to said standard for further details.
 
  If you enabled RTLLIB, you want this.
 
@@ -39,6 +44,8 @@ config RTLLIB_CRYPTO_WEP
default y
---help---
  TKIP crypto driver for rtllib.
+  This makes the driver comply with IEEE
+  80211i standard.
 
  If you enabled RTLLIB, you want this.
 
-- 
1.7.10.4

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-25 Thread Daeseok Youn
the dgnc_offset_table has a same value with (1 << port).
So I tried to replace dgnc_offset_table array with 1 << port.
And also there are redundant assignments(tmp and current_port)
inside while loop for checking uart port, and remove them.

Signed-off-by: Daeseok Youn 
---
Greg, This patch depends on previous patches.
here are links(previous):
1. https://lkml.org/lkml/2016/3/24/661
2. https://lkml.org/lkml/2016/3/24/663

if those patches are failed to merge, I will send them again after
fixing them.

thanks.

 drivers/staging/dgnc/dgnc_neo.c | 44 +++--
 1 file changed, 20 insertions(+), 24 deletions(-)

diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
index d732e6e..8b6bc73 100644
--- a/drivers/staging/dgnc/dgnc_neo.c
+++ b/drivers/staging/dgnc/dgnc_neo.c
@@ -77,9 +77,6 @@ struct board_ops dgnc_neo_ops = {
.send_immediate_char =  neo_send_immediate_char
 };
 
-static uint dgnc_offset_table[8] = { 0x01, 0x02, 0x04, 0x08,
-0x10, 0x20, 0x40, 0x80 };
-
 /*
  * This function allows calls to ensure that all outstanding
  * PCI writes have been completed, by doing a PCI read against
@@ -923,9 +920,7 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
struct dgnc_board *brd = voidbrd;
struct channel_t *ch;
int port = 0;
-   int type = 0;
-   int current_port;
-   u32 tmp;
+   int type;
u32 uart_poll;
unsigned long flags;
unsigned long flags2;
@@ -960,28 +955,29 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
 
/* At this point, we have at least SOMETHING to service, dig further... 
*/
 
-   current_port = 0;
-
/* Loop on each port */
while ((uart_poll & 0xff) != 0) {
-   tmp = uart_poll;
-
-   /* Check current port to see if it has interrupt pending */
-   if ((tmp & dgnc_offset_table[current_port]) != 0) {
-   port = current_port;
-   type = tmp >> (8 + (port * 3));
-   type &= 0x7;
-   } else {
-   current_port++;
-   continue;
-   }
+   int i;
 
-   /* Remove this port + type from uart_poll */
-   uart_poll &= ~(dgnc_offset_table[port]);
+   type = 0;
 
-   if (!type) {
-   /* If no type, just ignore it, and move onto next port 
*/
-   continue;
+   for (i = port; i < MAXPORTS; i++) {
+   unsigned int offset_table = 0x1 << i;
+
+   /* Check current port to see
+* if it has interrupt pending
+*/
+   if ((uart_poll & offset_table) != 0) {
+   port = i;
+   type = uart_poll >> (8 + (port * 3));
+   type &= 0x7;
+
+   /* Remove this port + type from uart_poll */
+   uart_poll &= ~(offset_table);
+   }
+
+   if (type)
+   break;
}
 
/* Switch on type of interrupt we have */
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 02/11] staging: wilc1000: wilc_frame_register: removes unused hif_drv

2016-03-25 Thread Leo Kim
This patch removes unused hif_drv of wilc_frame_register function.
It's perform an unnecessary null check and debug print log.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/host_interface.c | 6 --
 1 file changed, 6 deletions(-)

diff --git a/drivers/staging/wilc1000/host_interface.c 
b/drivers/staging/wilc1000/host_interface.c
index b1ffa91..732587e 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -3689,12 +3689,6 @@ int wilc_frame_register(struct wilc_vif *vif, u16 
frame_type, bool reg)
 {
int result = 0;
struct host_if_msg msg;
-   struct host_if_drv *hif_drv = vif->hif_drv;
-
-   if (!hif_drv) {
-   netdev_err(vif->ndev, "driver is null\n");
-   return -EFAULT;
-   }
 
memset(&msg, 0, sizeof(struct host_if_msg));
 
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 04/11] staging: wilc1000: replaces g_struct_frame_reg with frame_reg

2016-03-25 Thread Leo Kim
This patch replaces g_struct_frame_reg with frame_reg.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 12 ++--
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c |  8 
 drivers/staging/wilc1000/wilc_wfi_netdevice.h |  2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index e949f21..2f830cd 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -966,12 +966,12 @@ int wilc_mac_open(struct net_device *ndev)
 
wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
 vif->ndev->ieee80211_ptr,
-vif->g_struct_frame_reg[0].frame_type,
-vif->g_struct_frame_reg[0].reg);
+vif->frame_reg[0].frame_type,
+vif->frame_reg[0].reg);
wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
 vif->ndev->ieee80211_ptr,
-vif->g_struct_frame_reg[1].frame_type,
-vif->g_struct_frame_reg[1].reg);
+vif->frame_reg[1].frame_type,
+vif->frame_reg[1].reg);
netif_wake_queue(ndev);
wl->open_ifcs++;
vif->mac_opened = 1;
@@ -1260,8 +1260,8 @@ void WILC_WFI_mgmt_rx(struct wilc *wilc, u8 *buff, u32 
size)
}
 
vif = netdev_priv(wilc->vif[1]->ndev);
-   if ((buff[0] == vif->g_struct_frame_reg[0].frame_type && 
vif->g_struct_frame_reg[0].reg) ||
-   (buff[0] == vif->g_struct_frame_reg[1].frame_type && 
vif->g_struct_frame_reg[1].reg))
+   if ((buff[0] == vif->frame_reg[0].frame_type && vif->frame_reg[0].reg) 
||
+   (buff[0] == vif->frame_reg[1].frame_type && vif->frame_reg[1].reg))
WILC_WFI_p2p_rx(wilc->vif[1]->ndev, buff, size);
 }
 
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 70625f8..3e0ffee 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -1745,15 +1745,15 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, 
struct wireless_dev *wdev,
switch (frame_type) {
case PROBE_REQ:
{
-   vif->g_struct_frame_reg[0].frame_type = frame_type;
-   vif->g_struct_frame_reg[0].reg = reg;
+   vif->frame_reg[0].frame_type = frame_type;
+   vif->frame_reg[0].reg = reg;
}
break;
 
case ACTION:
{
-   vif->g_struct_frame_reg[1].frame_type = frame_type;
-   vif->g_struct_frame_reg[1].reg = reg;
+   vif->frame_reg[1].frame_type = frame_type;
+   vif->frame_reg[1].reg = reg;
}
break;
 
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h 
b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
index f394484..3abe481 100644
--- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h
+++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
@@ -149,7 +149,7 @@ struct wilc_vif {
u8 iftype;
int monitor_flag;
int mac_opened;
-   struct frame_reg g_struct_frame_reg[num_reg_frame];
+   struct frame_reg frame_reg[num_reg_frame];
struct net_device_stats netstats;
struct wilc *wilc;
u8 src_addr[ETH_ALEN];
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 03/11] staging: wilc1000: removes typedef of struct struct_frame_reg

2016-03-25 Thread Leo Kim
This patch removes typedef of struct struct_frame_reg.
Renames the struct_frame_reg to frame_reg as well.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h 
b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
index 4123cff..f394484 100644
--- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h
+++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
@@ -139,18 +139,17 @@ struct wilc_priv {
 
 };
 
-typedef struct {
+struct frame_reg {
u16 frame_type;
bool reg;
-
-} struct_frame_reg;
+};
 
 struct wilc_vif {
u8 idx;
u8 iftype;
int monitor_flag;
int mac_opened;
-   struct_frame_reg g_struct_frame_reg[num_reg_frame];
+   struct frame_reg g_struct_frame_reg[num_reg_frame];
struct net_device_stats netstats;
struct wilc *wilc;
u8 src_addr[ETH_ALEN];
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 06/11] staging: wilc1000: removes unused dead codes

2016-03-25 Thread Leo Kim
This patch removes unused dead codes that define custom feature.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 8 
 1 file changed, 8 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index 760d44d1..db624ef 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -691,14 +691,6 @@ void wilc1000_wlan_deinit(struct net_device *dev)
 
wilc_wlan_stop(wl);
wilc_wlan_cleanup(dev);
-#if defined(PLAT_ALLWINNER_A20) || defined(PLAT_ALLWINNER_A23) || 
defined(PLAT_ALLWINNER_A31)
-   if (!wl->dev_irq_num &&
-   wl->hif_func->disable_interrupt) {
-   mutex_lock(&wl->hif_cs);
-   wl->hif_func->disable_interrupt(wl);
-   mutex_unlock(&wl->hif_cs);
-   }
-#endif
wlan_deinit_locks(dev);
 
wl->initialized = false;
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 05/11] staging: wilc1000: replaces frame_type with type of struct frame_reg

2016-03-25 Thread Leo Kim
This patch replaces frame_type with type of struct frame_reg.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 8 
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 4 ++--
 drivers/staging/wilc1000/wilc_wfi_netdevice.h | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index 2f830cd..760d44d1 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -966,11 +966,11 @@ int wilc_mac_open(struct net_device *ndev)
 
wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
 vif->ndev->ieee80211_ptr,
-vif->frame_reg[0].frame_type,
+vif->frame_reg[0].type,
 vif->frame_reg[0].reg);
wilc_mgmt_frame_register(vif->ndev->ieee80211_ptr->wiphy,
 vif->ndev->ieee80211_ptr,
-vif->frame_reg[1].frame_type,
+vif->frame_reg[1].type,
 vif->frame_reg[1].reg);
netif_wake_queue(ndev);
wl->open_ifcs++;
@@ -1260,8 +1260,8 @@ void WILC_WFI_mgmt_rx(struct wilc *wilc, u8 *buff, u32 
size)
}
 
vif = netdev_priv(wilc->vif[1]->ndev);
-   if ((buff[0] == vif->frame_reg[0].frame_type && vif->frame_reg[0].reg) 
||
-   (buff[0] == vif->frame_reg[1].frame_type && vif->frame_reg[1].reg))
+   if ((buff[0] == vif->frame_reg[0].type && vif->frame_reg[0].reg) ||
+   (buff[0] == vif->frame_reg[1].type && vif->frame_reg[1].reg))
WILC_WFI_p2p_rx(wilc->vif[1]->ndev, buff, size);
 }
 
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c 
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 3e0ffee..5785dda 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -1745,14 +1745,14 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, 
struct wireless_dev *wdev,
switch (frame_type) {
case PROBE_REQ:
{
-   vif->frame_reg[0].frame_type = frame_type;
+   vif->frame_reg[0].type = frame_type;
vif->frame_reg[0].reg = reg;
}
break;
 
case ACTION:
{
-   vif->frame_reg[1].frame_type = frame_type;
+   vif->frame_reg[1].type = frame_type;
vif->frame_reg[1].reg = reg;
}
break;
diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h 
b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
index 3abe481..debb139 100644
--- a/drivers/staging/wilc1000/wilc_wfi_netdevice.h
+++ b/drivers/staging/wilc1000/wilc_wfi_netdevice.h
@@ -140,7 +140,7 @@ struct wilc_priv {
 };
 
 struct frame_reg {
-   u16 frame_type;
+   u16 type;
bool reg;
 };
 
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 01/11] staging: wilc1000: removes WIRELESS_EXT

2016-03-25 Thread Leo Kim
This patch removes WIRELESS_EXT.
Does not used the WIRELESS_EXT define.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/Kconfig | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wilc1000/Kconfig b/drivers/staging/wilc1000/Kconfig
index dce9cee..73f7fef 100644
--- a/drivers/staging/wilc1000/Kconfig
+++ b/drivers/staging/wilc1000/Kconfig
@@ -1,6 +1,5 @@
 config WILC1000
tristate
-   select WIRELESS_EXT
---help---
  This module only support IEEE 802.11n WiFi.
 
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 09/11] staging: wilc1000: removes unused define

2016-03-25 Thread Leo Kim
This patch removes unused define.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c   | 2 --
 drivers/staging/wilc1000/wilc_wlan_if.h | 9 -
 2 files changed, 11 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index 8f0a74d..127a967 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -30,8 +30,6 @@ static struct notifier_block g_dev_notifier = {
.notifier_call = dev_state_ev_handler
 };
 
-#define IRQ_WAIT   1
-#define IRQ_NO_WAIT0
 static struct semaphore close_exit_sync;
 
 static int wlan_deinit_locks(struct net_device *dev);
diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h 
b/drivers/staging/wilc1000/wilc_wlan_if.h
index 119b313..410bfc0 100644
--- a/drivers/staging/wilc1000/wilc_wlan_if.h
+++ b/drivers/staging/wilc1000/wilc_wlan_if.h
@@ -25,15 +25,6 @@
 
 /
  *
- *  Tx/Rx Buffer Size Defines
- *
- /
-
-#define CE_TX_BUFFER_SIZE  (64 * 1024)
-#define CE_RX_BUFFER_SIZE  (384 * 1024)
-
-/
- *
  *  Wlan Interface Defines
  *
  /
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 10/11] staging: wilc1000: removes define USE_TX_BACKOFF_DELAY_IF_NO_BUFFERS

2016-03-25 Thread Leo Kim
This patch removes define USE_TX_BACKOFF_DELAY_IF_NO_BUFFERS and
use it's feature codes.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 8 
 1 file changed, 8 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index 127a967..fae03e8 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -303,22 +303,18 @@ int wilc_wlan_get_num_conn_ifcs(struct wilc *wilc)
return ret_val;
 }
 
-#define USE_TX_BACKOFF_DELAY_IF_NO_BUFFERS
-
 static int linux_wlan_txq_task(void *vp)
 {
int ret, txq_count;
struct wilc_vif *vif;
struct wilc *wl;
struct net_device *dev = vp;
-#if defined USE_TX_BACKOFF_DELAY_IF_NO_BUFFERS
 #define TX_BACKOFF_WEIGHT_INCR_STEP (1)
 #define TX_BACKOFF_WEIGHT_DECR_STEP (1)
 #define TX_BACKOFF_WEIGHT_MAX (7)
 #define TX_BACKOFF_WEIGHT_MIN (0)
 #define TX_BACKOFF_WEIGHT_UNIT_MS (10)
int backoff_weight = TX_BACKOFF_WEIGHT_MIN;
-#endif
 
vif = netdev_priv(dev);
wl = vif->wilc;
@@ -334,9 +330,6 @@ static int linux_wlan_txq_task(void *vp)
schedule();
break;
}
-#if !defined USE_TX_BACKOFF_DELAY_IF_NO_BUFFERS
-   ret = wilc_wlan_handle_txq(dev, &txq_count);
-#else
do {
ret = wilc_wlan_handle_txq(dev, &txq_count);
if (txq_count < FLOW_CONTROL_LOWER_THRESHOLD) {
@@ -358,7 +351,6 @@ static int linux_wlan_txq_task(void *vp)
}
}
} while (ret == WILC_TX_ERR_NO_BUF && !wl->close);
-#endif
}
return 0;
 }
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 08/11] staging: wilc1000: replaces memcmp with ether_addr_equal_unaligned

2016-03-25 Thread Leo Kim
This patch replaces memcmp with ether_addr_equal_unaligned.
Warning reported by checkpatch.pl
 - Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index db624ef..8f0a74d 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -259,10 +259,12 @@ static struct net_device *get_if_handler(struct wilc 
*wilc, u8 *mac_header)
 
for (i = 0; i < wilc->vif_num; i++) {
if (wilc->vif[i]->mode == STATION_MODE)
-   if (!memcmp(bssid, wilc->vif[i]->bssid, ETH_ALEN))
+   if (ether_addr_equal_unaligned(bssid,
+  wilc->vif[i]->bssid))
return wilc->vif[i]->ndev;
if (wilc->vif[i]->mode == AP_MODE)
-   if (!memcmp(bssid1, wilc->vif[i]->bssid, ETH_ALEN))
+   if (ether_addr_equal_unaligned(bssid1,
+  wilc->vif[i]->bssid))
return wilc->vif[i]->ndev;
}
 
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 07/11] staging: wilc1000: removes unused debug flags

2016-03-25 Thread Leo Kim
This patch removes unused debug flags.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/wilc_wlan_if.h | 12 
 1 file changed, 12 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wlan_if.h 
b/drivers/staging/wilc1000/wilc_wlan_if.h
index 83cf84d..119b313 100644
--- a/drivers/staging/wilc1000/wilc_wlan_if.h
+++ b/drivers/staging/wilc1000/wilc_wlan_if.h
@@ -15,18 +15,6 @@
 
 /
  *
- *  Debug Flags
- *
- /
-
-#define N_INIT 0x0001
-#define N_ERR  0x0002
-#define N_TXQ  0x0004
-#define N_INTR 0x0008
-#define N_RXQ  0x0010
-
-/
- *
  *  Host Interface Defines
  *
  /
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH 11/11] staging: wilc1000: removes unused local variable

2016-03-25 Thread Leo Kim
This patch removes unused local variable.
This variable is operation definition that back off from sending packets
for some time.
However, that has been deleted operation code.
That is removes all relative code.

Signed-off-by: Leo Kim 
---
 drivers/staging/wilc1000/linux_wlan.c | 18 --
 1 file changed, 18 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c 
b/drivers/staging/wilc1000/linux_wlan.c
index fae03e8..a858552 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -309,12 +309,6 @@ static int linux_wlan_txq_task(void *vp)
struct wilc_vif *vif;
struct wilc *wl;
struct net_device *dev = vp;
-#define TX_BACKOFF_WEIGHT_INCR_STEP (1)
-#define TX_BACKOFF_WEIGHT_DECR_STEP (1)
-#define TX_BACKOFF_WEIGHT_MAX (7)
-#define TX_BACKOFF_WEIGHT_MIN (0)
-#define TX_BACKOFF_WEIGHT_UNIT_MS (10)
-   int backoff_weight = TX_BACKOFF_WEIGHT_MIN;
 
vif = netdev_priv(dev);
wl = vif->wilc;
@@ -338,18 +332,6 @@ static int linux_wlan_txq_task(void *vp)
if (netif_queue_stopped(wl->vif[1]->ndev))
netif_wake_queue(wl->vif[1]->ndev);
}
-
-   if (ret == WILC_TX_ERR_NO_BUF) {
-   backoff_weight += TX_BACKOFF_WEIGHT_INCR_STEP;
-   if (backoff_weight > TX_BACKOFF_WEIGHT_MAX)
-   backoff_weight = TX_BACKOFF_WEIGHT_MAX;
-   } else {
-   if (backoff_weight > TX_BACKOFF_WEIGHT_MIN) {
-   backoff_weight -= 
TX_BACKOFF_WEIGHT_DECR_STEP;
-   if (backoff_weight < 
TX_BACKOFF_WEIGHT_MIN)
-   backoff_weight = 
TX_BACKOFF_WEIGHT_MIN;
-   }
-   }
} while (ret == WILC_TX_ERR_NO_BUF && !wl->close);
}
return 0;
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH] staging: dgnc: replace dgnc_offset_table with bit shift.

2016-03-25 Thread walter harms


Am 25.03.2016 12:33, schrieb Daeseok Youn:
> the dgnc_offset_table has a same value with (1 << port).
> So I tried to replace dgnc_offset_table array with 1 << port.
> And also there are redundant assignments(tmp and current_port)
> inside while loop for checking uart port, and remove them.
> 
> Signed-off-by: Daeseok Youn 
> ---
> Greg, This patch depends on previous patches.
> here are links(previous):
> 1. https://lkml.org/lkml/2016/3/24/661
> 2. https://lkml.org/lkml/2016/3/24/663
> 
> if those patches are failed to merge, I will send them again after
> fixing them.
> 
> thanks.
> 
>  drivers/staging/dgnc/dgnc_neo.c | 44 
> +++--
>  1 file changed, 20 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c
> index d732e6e..8b6bc73 100644
> --- a/drivers/staging/dgnc/dgnc_neo.c
> +++ b/drivers/staging/dgnc/dgnc_neo.c
> @@ -77,9 +77,6 @@ struct board_ops dgnc_neo_ops = {
>   .send_immediate_char =  neo_send_immediate_char
>  };
>  
> -static uint dgnc_offset_table[8] = { 0x01, 0x02, 0x04, 0x08,
> -  0x10, 0x20, 0x40, 0x80 };
> -
>  /*
>   * This function allows calls to ensure that all outstanding
>   * PCI writes have been completed, by doing a PCI read against
> @@ -923,9 +920,7 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
>   struct dgnc_board *brd = voidbrd;
>   struct channel_t *ch;
>   int port = 0;
> - int type = 0;
> - int current_port;
> - u32 tmp;
> + int type;
>   u32 uart_poll;
>   unsigned long flags;
>   unsigned long flags2;
> @@ -960,28 +955,29 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
>  
>   /* At this point, we have at least SOMETHING to service, dig further... 
> */
>  
> - current_port = 0;
> -
>   /* Loop on each port */
>   while ((uart_poll & 0xff) != 0) {
> - tmp = uart_poll;
> -
> - /* Check current port to see if it has interrupt pending */
> - if ((tmp & dgnc_offset_table[current_port]) != 0) {
> - port = current_port;
> - type = tmp >> (8 + (port * 3));
> - type &= 0x7;
> - } else {
> - current_port++;
> - continue;
> - }
> + int i;
>  
> - /* Remove this port + type from uart_poll */
> - uart_poll &= ~(dgnc_offset_table[port]);
> + type = 0;
>  
> - if (!type) {
> - /* If no type, just ignore it, and move onto next port 
> */
> - continue;
> + for (i = port; i < MAXPORTS; i++) {
> + unsigned int offset_table = 0x1 << i;
> +
> + /* Check current port to see
> +  * if it has interrupt pending
> +  */
> + if ((uart_poll & offset_table) != 0) {
> + port = i;
> + type = uart_poll >> (8 + (port * 3));
> + type &= 0x7;
> +
> + /* Remove this port + type from uart_poll */
> + uart_poll &= ~(offset_table);

why not: art_poll &= ~ (0x1 << i);
then you can easy eliminate offset_table

btw: why do you need i ?

re,
 wh

> + }
> +
> + if (type)
> + break;
>   }
>  
>   /* Switch on type of interrupt we have */
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH 1/3] of: Add vendor prefix for Analogix Semiconductor

2016-03-25 Thread Rob Herring
On Thu, Mar 24, 2016 at 11:41:44AM +0100, Enric Balletbo i Serra wrote:
> Analogix Semiconductor Inc. develops analog and mixed-signal devices for
> digital media and communications interconnect applications.
> 
> Signed-off-by: Enric Balletbo i Serra 
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
>  1 file changed, 1 insertion(+)

Acked-by: Rob Herring 
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH 2/3] devicetree: Add ANX7814 bridge binding.

2016-03-25 Thread Rob Herring
On Thu, Mar 24, 2016 at 11:41:45AM +0100, Enric Balletbo i Serra wrote:
> The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter
> designed for portable devices.
> 
> Signed-off-by: Enric Balletbo i Serra 
> ---
>  .../devicetree/bindings/video/bridge/anx7814.txt   | 41 
> ++
>  1 file changed, 41 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/video/bridge/anx7814.txt
> 
> diff --git a/Documentation/devicetree/bindings/video/bridge/anx7814.txt 
> b/Documentation/devicetree/bindings/video/bridge/anx7814.txt
> new file mode 100644
> index 000..5a47a42
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/video/bridge/anx7814.txt
> @@ -0,0 +1,41 @@
> +Analogix ANX7814 SlimPort (Full-HD Transmitter)
> +---
> +
> +The ANX7814 is an ultra-low power Full-HD (1080p60) SlimPort transmitter
> +designed for portable devices.
> +
> +Required properties:
> +
> + - compatible: "analogix,anx7814"
> + - reg   : I2C address of the device
> + - interrupt-parent  : Should be the phandle of the interrupt controller
> +   that services interrupts for this device
> + - interrupts: Should contain the INTP interrupt
> + - cable-det-gpios   : Which GPIO to use for cable detection

hpd-gpios is the more standard name.

> + - pd-gpios  : Which GPIO to use for power down
> + - reset-gpios   : Which GPIO to use for reset
> +
> +Optional properties:
> +
> + - v10-gpios : Which GPIO to use for V10 control.
> + - Video port for HDMI output, using the DT bindings defined in [1].

It is HDMI input from this node's perspective, right?

> +
> +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
> +
> +Example:
> +
> + anx7814: anx7814@38 {
> + compatible = "analogix,anx7814";
> + reg = <0x38>;
> + interrupt-parent = <&gpio0>;
> + interrupts = <99 IRQ_TYPE_LEVEL_LOW>;   /* INTP */
> + cable-det-gpios = <&pio 36 GPIO_ACTIVE_HIGH>;
> + pd-gpios = <&pio 33 GPIO_ACTIVE_HIGH>;
> + reset-gpios = <&pio 98 GPIO_ACTIVE_HIGH>;
> + v10-gpios = <&pio 35 GPIO_ACTIVE_HIGH>;
> + port {
> + anx7814_in: endpoint {
> + remote-endpoint = <&hdmi0_out>;
> + };
> + };
> + };
> -- 
> 2.1.0
> 
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH] staging: rtl8192e: add more information to Kconfig

2016-03-25 Thread Greg KH
On Fri, Mar 25, 2016 at 01:03:51AM -0700, deutschluz wrote:
> The warnings were originating in the Kconfig file and were
> essentially, asking for more information to display. A quick google
> search returned the patch that separated the rtl driver from 2011
> into several separate drivers in order to comply with a certain
> IEEE standard.
> 
> Signed-off-by: Luz Angel Orejel 

Your From: line does not match your signed-off-by: line :(

> ---
>  drivers/staging/rtl8192e/Kconfig |   11 +--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8192e/Kconfig 
> b/drivers/staging/rtl8192e/Kconfig
> index 4602a47..cc800a3 100644
> --- a/drivers/staging/rtl8192e/Kconfig
> +++ b/drivers/staging/rtl8192e/Kconfig
> @@ -17,7 +17,10 @@ config RTLLIB_CRYPTO_CCMP
>   select CRYPTO_AES
>   default y
>   ---help---
> -   CCMP crypto driver for rtllib.
> +   CCMP crypto driver for rtllib. This makes
> +  the driver compliant with the IEEE 80211i
> +  standard. Refer to said standard for more
> +  details.

Are you sure this is correct?

A bit more description might be needed for these, you are still being
very terse.

thanks,

greg k-h
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: wlan-ng: no need for memcpy() since its arguments are already equal

2016-03-25 Thread Claudiu Beznea
This patch removes the memcpy() for two variables which were
previously tested with memcmp(). The result of memcmp() was
zero which means that the previously tested variables were
already equal.

Signed-off-by: Claudiu Beznea 
---
 drivers/staging/wlan-ng/p80211conv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/p80211conv.c 
b/drivers/staging/wlan-ng/p80211conv.c
index 0a8f396..5823b90 100644
--- a/drivers/staging/wlan-ng/p80211conv.c
+++ b/drivers/staging/wlan-ng/p80211conv.c
@@ -243,7 +243,6 @@ static void orinoco_spy_gather(wlandevice_t *wlandev, char 
*mac,
 
for (i = 0; i < wlandev->spy_number; i++) {
if (!memcmp(wlandev->spy_address[i], mac, ETH_ALEN)) {
-   memcpy(wlandev->spy_address[i], mac, ETH_ALEN);
wlandev->spy_stat[i].level = rxmeta->signal;
wlandev->spy_stat[i].noise = rxmeta->noise;
wlandev->spy_stat[i].qual =
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: wlan-ng: convert usb_prism_tbl[] array into a const array

2016-03-25 Thread Claudiu Beznea
This patch convert usb_prism_tbl[] into a const array
since it is not modified anywhere in prism2usb.c file.

Signed-off-by: Claudiu Beznea 
---
 drivers/staging/wlan-ng/prism2usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/prism2usb.c 
b/drivers/staging/wlan-ng/prism2usb.c
index 41358bb..b26d09f 100644
--- a/drivers/staging/wlan-ng/prism2usb.c
+++ b/drivers/staging/wlan-ng/prism2usb.c
@@ -8,7 +8,7 @@
{ USB_DEVICE(vid, pid), \
.driver_info = (unsigned long)name }
 
-static struct usb_device_id usb_prism_tbl[] = {
+static const struct usb_device_id usb_prism_tbl[] = {
PRISM_DEV(0x04bb, 0x0922, "IOData AirPort WN-B11/USBS"),
PRISM_DEV(0x07aa, 0x0012, "Corega Wireless LAN USB Stick-11"),
PRISM_DEV(0x09aa, 0x3642, "Prism2.x 11Mbps WLAN USB Adapter"),
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: gs_fpgaboot: remove blank line in io.c

2016-03-25 Thread Ben Marsh
Removes a blank line in order to silence a checkpatch.pl warning.

Signed-off-by: Ben Marsh 
---
 drivers/staging/gs_fpgaboot/io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/gs_fpgaboot/io.c b/drivers/staging/gs_fpgaboot/io.c
index 819db53..c939119 100644
--- a/drivers/staging/gs_fpgaboot/io.c
+++ b/drivers/staging/gs_fpgaboot/io.c
@@ -35,7 +35,6 @@ static inline void byte0_out(unsigned char data);
 static inline void byte1_out(unsigned char data);
 static inline void xl_cclk_b(int32_t i);
 
-
 /* Assert and Deassert CCLK */
 void xl_shift_cclk(int count)
 {
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: rmda: removes a void pointer

2016-03-25 Thread Ben Marsh
Removes a void pointer in user_sdma.c

Signed-off-by: Ben Marsh 
---
 drivers/staging/rdma/hfi1/user_sdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rdma/hfi1/user_sdma.c 
b/drivers/staging/rdma/hfi1/user_sdma.c
index 2f48419..d152126a 100644
--- a/drivers/staging/rdma/hfi1/user_sdma.c
+++ b/drivers/staging/rdma/hfi1/user_sdma.c
@@ -345,7 +345,7 @@ static void activate_packet_queue(struct iowait *wait, int 
reason)
 
 static void sdma_kmem_cache_ctor(void *obj)
 {
-   struct user_sdma_txreq *tx = (struct user_sdma_txreq *)obj;
+   struct user_sdma_txreq *tx = obj;
 
memset(tx, 0, sizeof(*tx));
 }
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


***BULK*** Re

2016-03-25 Thread Mr.Robert N. Brice
Main Office
NYU Federal Credit Union
726 Broadway, Suite 110
New York, NY 10003-9502
Phone: +15417304758 
 

TELEGRAPHIC TRANSFER NOTICE.
 
We are hereby officially notify you concerning your fund telegraphic Transfer 
through our bank, Credit Union, New York, to your bank account, 

which has been officially approved by the management of World Bank Swiss (WBS) 
to credit the sum of US$10.5 Million into your bank account.

Note that I have started processing your payment and every thing concerning the 
immediate remittance of your funds will be carried out within the 

shortest possible time from the time we received your Below needed information.

 
This fund was  discovery  with World Bank of Switzerland, which the Swiss Bank 
has decided to distribute it generously to help few lucky 

individuals as a compensation and the American Government is in agreement with 
the Swiss Bank to distribute the fund with people in America, 

Europe & Asia in other to help improve their businesses.

 
Therefore, reconfirm the aforesaid information accurately, because this office 
cannot afford to be held liable for any wrong transfer of funds or 

liable of any fund credited into an unknown account.
 
These are the information we needed to be reconfirmed by you.
 
1.Your Full Bank Name: Bank Account Bank Routing No: Bank Address: Bank Swift 
Code: 
2.Your Direct Cell or office phone to reach you
3.Your address of locations
4.Your full name
5.Valid Passport Copy: Age/ Occupation:

 
Finally, you are required to reconfirm directly to me the above information to 
enable me use it to process your bill of payment.
Your quick response shall be mostly appreciated; all your response should be 
directed through our alternative email address for the immediate 

attention of the credit control department.
 

Contact Person: Mr. Richard Davis 
E-mail: customercareservicecob...@outlook.com
Tel: +16467517625
Director 2016 Fund Compensation.

Yours Faithfully,
Mr.Robert N. Brice.
Vice Chairman, Director, Credit /Telex Department.
+15417304758
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: rtl8723au: Remove unused functions

2016-03-25 Thread Bhumika Goyal
The functions rtw_get_oper_bw23a and rtw_get_oper_ch23aoffset are never
used anywhere in the kernel. So, remove their definition and prototype.
Grepped to find occurences.

Signed-off-by: Bhumika Goyal 
---
 drivers/staging/rtl8723au/core/rtw_wlan_util.c   | 10 --
 drivers/staging/rtl8723au/include/rtw_mlme_ext.h |  2 --
 2 files changed, 12 deletions(-)

diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c 
b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
index cc2b84b..694cf17 100644
--- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
@@ -304,21 +304,11 @@ inline void rtw_set_oper_ch23a(struct rtw_adapter 
*adapter, u8 ch)
adapter_to_dvobj(adapter)->oper_channel = ch;
 }
 
-inline u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter)
-{
-   return adapter_to_dvobj(adapter)->oper_bwmode;
-}
-
 inline void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw)
 {
adapter_to_dvobj(adapter)->oper_bwmode = bw;
 }
 
-inline u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter)
-{
-   return adapter_to_dvobj(adapter)->oper_ch_offset;
-}
-
 inline void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset)
 {
adapter_to_dvobj(adapter)->oper_ch_offset = offset;
diff --git a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h 
b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h
index ea2a6c9..0e7d3da 100644
--- a/drivers/staging/rtl8723au/include/rtw_mlme_ext.h
+++ b/drivers/staging/rtl8723au/include/rtw_mlme_ext.h
@@ -461,9 +461,7 @@ void Update23aTblForSoftAP(u8 *bssrateset, u32 bssratelen);
 
 u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter);
 void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch);
-u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter);
 void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw);
-u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter);
 void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset);
 
 void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Staging: rtl8723au: Remove function rtw_enqueue_{recvbuf23a/recvbuf23a_to_head}

2016-03-25 Thread Bhumika Goyal
The functions rtw_enqueue_recvbuf23a and rtw_enqueue_recvbuf23a_to_head
are never used anywhere in the kernel. So, remove their definition and
prototype.
Grepped to find occurences.

Signed-off-by: Bhumika Goyal 
---
 drivers/staging/rtl8723au/core/rtw_recv.c| 25 -
 drivers/staging/rtl8723au/include/rtw_recv.h |  2 --
 2 files changed, 27 deletions(-)

diff --git a/drivers/staging/rtl8723au/core/rtw_recv.c 
b/drivers/staging/rtl8723au/core/rtw_recv.c
index 989ed07..150dabc 100644
--- a/drivers/staging/rtl8723au/core/rtw_recv.c
+++ b/drivers/staging/rtl8723au/core/rtw_recv.c
@@ -211,31 +211,6 @@ u32 rtw_free_uc_swdec_pending_queue23a(struct rtw_adapter 
*adapter)
return cnt;
 }
 
-int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue 
*queue)
-{
-   spin_lock_bh(&queue->lock);
-
-   list_del_init(&precvbuf->list);
-   list_add(&precvbuf->list, get_list_head(queue));
-
-   spin_unlock_bh(&queue->lock);
-
-   return _SUCCESS;
-}
-
-int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue)
-{
-   unsigned long irqL;
-
-   spin_lock_irqsave(&queue->lock, irqL);
-
-   list_del_init(&precvbuf->list);
-
-   list_add_tail(&precvbuf->list, get_list_head(queue));
-   spin_unlock_irqrestore(&queue->lock, irqL);
-   return _SUCCESS;
-}
-
 struct recv_buf *rtw_dequeue_recvbuf23a (struct rtw_queue *queue)
 {
unsigned long irqL;
diff --git a/drivers/staging/rtl8723au/include/rtw_recv.h 
b/drivers/staging/rtl8723au/include/rtw_recv.h
index dc784be..85a5edb 100644
--- a/drivers/staging/rtl8723au/include/rtw_recv.h
+++ b/drivers/staging/rtl8723au/include/rtw_recv.h
@@ -279,8 +279,6 @@ int rtw_enqueue_recvframe23a(struct recv_frame *precvframe, 
struct rtw_queue *qu
 
 u32 rtw_free_uc_swdec_pending_queue23a(struct rtw_adapter *adapter);
 
-int rtw_enqueue_recvbuf23a_to_head(struct recv_buf *precvbuf, struct rtw_queue 
*queue);
-int rtw_enqueue_recvbuf23a(struct recv_buf *precvbuf, struct rtw_queue *queue);
 struct recv_buf *rtw_dequeue_recvbuf23a(struct rtw_queue *queue);
 
 void rtw_reordering_ctrl_timeout_handler23a(unsigned long pcontext);
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel