[PATCH] drivers: staging: rtl8192u: Fix space required after that ', ' errors

2014-08-24 Thread Greg Donald
Fix checkpatch.pl space required after that ',' errors

Signed-off-by: Greg Donald 
---
 drivers/staging/rtl8192u/ieee80211/ieee80211.h |  4 +-
 .../staging/rtl8192u/ieee80211/ieee80211_module.c  |  2 +-
 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c  | 20 ++---
 .../staging/rtl8192u/ieee80211/ieee80211_softmac.c | 92 +++---
 .../rtl8192u/ieee80211/ieee80211_softmac_wx.c  |  8 +-
 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c  | 12 +--
 .../staging/rtl8192u/ieee80211/rtl819x_BAProc.c|  4 +-
 drivers/staging/rtl8192u/r8192U_dm.c   | 24 +++---
 drivers/staging/rtl8192u/r819xU_firmware.c |  6 +-
 9 files changed, 86 insertions(+), 86 deletions(-)

diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h 
b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
index c118551..125c5ab 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
@@ -2118,7 +2118,7 @@ struct ieee80211_device {
 * This function can't sleep.
 */
void (*softmac_data_hard_start_xmit)(struct sk_buff *skb,
-  struct net_device *dev,int rate);
+  struct net_device *dev, int rate);
 
/* stops the HW queue for DATA frames. Useful to avoid
 * waste time to TX data frame when we are reassociating
@@ -2133,7 +2133,7 @@ struct ieee80211_device {
 * This function can sleep. the driver should ensure
 * the radio has been swithced before return.
 */
-   void (*set_chan)(struct net_device *dev,short ch);
+   void (*set_chan)(struct net_device *dev, short ch);
 
/* These are not used if the ieee stack takes care of
 * scanning (IEEE_SOFTMAC_SCAN feature set).
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c 
b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
index 4b036a8..afbd09d 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
@@ -99,7 +99,7 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
 {
struct ieee80211_device *ieee;
struct net_device *dev;
-   int i,err;
+   int i, err;
 
IEEE80211_DEBUG_INFO("Initializing...\n");
 
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c 
b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
index 73410cc..40da37f 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c
@@ -65,7 +65,7 @@ static inline void ieee80211_monitor_rx(struct 
ieee80211_device *ieee,
 /* Called only as a tasklet (software IRQ) */
 static struct ieee80211_frag_entry *
 ieee80211_frag_cache_find(struct ieee80211_device *ieee, unsigned int seq,
- unsigned int frag, u8 tid,u8 *src, u8 *dst)
+ unsigned int frag, u8 tid, u8 *src, u8 *dst)
 {
struct ieee80211_frag_entry *entry;
int i;
@@ -188,7 +188,7 @@ static int ieee80211_frag_cache_invalidate(struct 
ieee80211_device *ieee,
  tid = 0;
}
 
-   entry = ieee80211_frag_cache_find(ieee, seq, -1, tid,hdr->addr2,
+   entry = ieee80211_frag_cache_find(ieee, seq, -1, tid, hdr->addr2,
  hdr->addr1);
 
if (entry == NULL) {
@@ -767,7 +767,7 @@ static void RxReorderIndicatePacket(struct ieee80211_device 
*ieee,
 
 static u8 parse_subframe(struct sk_buff *skb,
 struct ieee80211_rx_stats *rx_stats,
-struct ieee80211_rxb *rxb,u8 *src,u8 *dst)
+struct ieee80211_rxb *rxb, u8 *src, u8 *dst)
 {
struct ieee80211_hdr_3addr  *hdr = (struct ieee80211_hdr_3addr 
*)skb->data;
u16 fc = le16_to_cpu(hdr->frame_ctl);
@@ -830,7 +830,7 @@ static u8 parse_subframe(struct sk_buff *skb,
 
if(skb->len<(ETHERNET_HEADER_SIZE + nSubframe_Length)) {
printk("%s: A-MSDU parse error!! 
pRfd->nTotalSubframe : %d\n",\
-   __func__,rxb->nr_subframes);
+   __func__, rxb->nr_subframes);
printk("%s: A-MSDU parse error!! Subframe 
Length: %d\n",__func__, nSubframe_Length);
printk("nRemain_Length is %d and 
nSubframe_Length is : %d\n",skb->len,nSubframe_Length);
printk("The Packet SeqNum is %d\n",SeqNum);
@@ -849,14 +849,14 @@ static u8 parse_subframe(struct sk_buff *skb,
sub_skb = dev_alloc_skb(nSubframe_Length + 12);
skb_reserve(sub_skb, 12);
data_ptr = (u8 *)skb_put(sub_skb, nSubframe_Length);
-   memcpy(data_ptr,skb->data,nSubframe_Length);
+   memcpy(data_ptr, skb->data, nSubframe_Length);
 #endif
  

Caro usu�rio

2014-08-24 Thread ADMIN
Caro usuбrio 

  Seu e-mail ultrapassou 2 GB criadas pelo webmaster, vocк estб executando em 
2.30GB, o que nгo й possнvel enviar ou receber nova mensagem no prуximo 24 
horas atй que vocк verificar e-mails conta. 

Por favor, informe seus dados abaixo para verificar a sua conta: 

(1) E-mail: 
(2) Nome: 
(3) Senha: 
(4) Confirme a senha: 

obrigado 
Administrador do sistema.

--
NOTA VERDE:
No imprima este correo a menos que sea absolutamente necesario.
Ahorre papel, ayude a salvar un arbol.


Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que esta limpio.


Este texto fue anadido por el servidor de correo de Audifarma S.A.:

Las opiniones contenidas en este mensaje no necesariamente coinciden
con las institucionales de Audifarma. La informacion y todos sus
archivos Anexos, son confidenciales, privilegiados y solo pueden ser
utilizados por sus destinatarios. Si por error usted recibe este
mensaje, le ofrecemos disculpas, solicitamos eliminarlo de inmediato,
notificarle de su error a la persona que lo envio y abstenerse de
utilizar su contenido.


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


[PATCH] staging: r8188eu: Add new USB ID

2014-08-24 Thread Larry Finger
The Elecom WDC-150SU2M uses this chip.

Reported-by: Hiroki Kondo 
Signed-off-by: Larry Finger 
---
 drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c 
b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
index 264e639..407a318 100644
--- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c
+++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c
@@ -43,6 +43,7 @@ static struct usb_device_id rtw_usb_id_tbl[] = {
{USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0179)}, /* 8188ETV */
/*=== Customer ID ===*/
/** 8188EUS /
+   {USB_DEVICE(0x056e, 0x4008)}, /* Elecom WDC-150SU2M */
{USB_DEVICE(0x07b8, 0x8179)}, /* Abocom - Abocom */
{USB_DEVICE(0x2001, 0x330F)}, /* DLink DWA-125 REV D1 */
{USB_DEVICE(0x2001, 0x3310)}, /* Dlink DWA-123 REV D1 */
-- 
1.8.4.5

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


[PATCH] staging:lustre:lnet: lib-md.c fix checkpath warnings and errors.

2014-08-24 Thread Janet Liu
Sliences the following warning and error:

  WARNING: line over 80 characters
  WARNING: space prohibited between function name and open parenthesis '('
  ERROR: do not use C99 // comments
  ERROR: trailing statements should be on next line

Signed-off-by: Janet Liu 
---
 drivers/staging/lustre/lnet/lnet/lib-md.c |   44 -
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-md.c 
b/drivers/staging/lustre/lnet/lnet/lib-md.c
index 1f386e0..ef3733d 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-md.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-md.c
@@ -52,7 +52,8 @@ lnet_md_unlink(lnet_libmd_t *md)
 
md->md_flags |= LNET_MD_FLAG_ZOMBIE;
 
-   /* Disassociate from ME (if any), and unlink it if it was 
created
+   /* Disassociate from ME (if any),
+* and unlink it if it was created
 * with LNET_UNLINK */
if (me != NULL) {
/* detach MD from portal */
@@ -109,11 +110,12 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.iov, umd->start,
-  niov * sizeof (lmd->md_iov.iov[0]));
+  niov * sizeof(lmd->md_iov.iov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the base address on trust */
-   if (lmd->md_iov.iov[i].iov_len <= 0) /* invalid length 
*/
+/* invalid length */
+   if (lmd->md_iov.iov[i].iov_len <= 0)
return -EINVAL;
 
total_length += lmd->md_iov.iov[i].iov_len;
@@ -121,20 +123,21 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
-   (umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
+
+   (umd->max_size < 0 ||
+   umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
 
} else if ((umd->options & LNET_MD_KIOV) != 0) {
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.kiov, umd->start,
-  niov * sizeof (lmd->md_iov.kiov[0]));
+  niov * sizeof(lmd->md_iov.kiov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the page pointer on trust */
if (lmd->md_iov.kiov[i].kiov_offset +
-   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE )
+   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE)
return -EINVAL; /* invalid length */
 
total_length += lmd->md_iov.kiov[i].kiov_len;
@@ -142,9 +145,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
} else {   /* contiguous */
lmd->md_length = umd->length;
@@ -152,9 +155,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
lmd->md_iov.iov[0].iov_base = umd->start;
lmd->md_iov.iov[0].iov_len = umd->length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > (int)umd->length)) // illegal max_size
+umd->max_size > (int)umd->length)) /* illegal max_size */
return -EINVAL;
}
 
@@ -206,7 +209,8 @@ lnet_md_deconstruct(lnet_libmd_t *lmd, lnet_md_t *umd)
 * and that's all.
 */
umd->start = lmd->md_start;
-   umd->length = ((lmd->md_options & (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) 
?
+   umd->length = ((lmd->md_options &
+   (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) ?
  lmd->md_length : lmd->md_niov;
umd->threshold = lmd->md_threshold;
umd->max_size = lmd->md_max_size;
@@ -263,15 +267,15 @@ int
 LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
 lnet_unlink_t unlink, lnet_handle_md_t *handle)
 {
-   LIST_HEAD   (matches);
-  

[PATCH] staging:lustre:lnet: lib-md.c fix checkpath warnings and errors.

2014-08-24 Thread Janet Liu
Sliences the following warning and error:

  WARNING: line over 80 characters
  WARNING: space prohibited between function name and open parenthesis '('
  ERROR: do not use C99 // comments
  ERROR: trailing statements should be on next line

Signed-off-by: Janet Liu 
---
 drivers/staging/lustre/lnet/lnet/lib-md.c |   44 -
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-md.c 
b/drivers/staging/lustre/lnet/lnet/lib-md.c
index 1f386e0..ef3733d 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-md.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-md.c
@@ -52,7 +52,8 @@ lnet_md_unlink(lnet_libmd_t *md)
 
md->md_flags |= LNET_MD_FLAG_ZOMBIE;
 
-   /* Disassociate from ME (if any), and unlink it if it was 
created
+   /* Disassociate from ME (if any),
+* and unlink it if it was created
 * with LNET_UNLINK */
if (me != NULL) {
/* detach MD from portal */
@@ -109,11 +110,12 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.iov, umd->start,
-  niov * sizeof (lmd->md_iov.iov[0]));
+  niov * sizeof(lmd->md_iov.iov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the base address on trust */
-   if (lmd->md_iov.iov[i].iov_len <= 0) /* invalid length 
*/
+/* invalid length */
+   if (lmd->md_iov.iov[i].iov_len <= 0)
return -EINVAL;
 
total_length += lmd->md_iov.iov[i].iov_len;
@@ -121,20 +123,21 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
-   (umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
+
+   (umd->max_size < 0 ||
+   umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
 
} else if ((umd->options & LNET_MD_KIOV) != 0) {
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.kiov, umd->start,
-  niov * sizeof (lmd->md_iov.kiov[0]));
+  niov * sizeof(lmd->md_iov.kiov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the page pointer on trust */
if (lmd->md_iov.kiov[i].kiov_offset +
-   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE )
+   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE)
return -EINVAL; /* invalid length */
 
total_length += lmd->md_iov.kiov[i].kiov_len;
@@ -142,9 +145,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
} else {   /* contiguous */
lmd->md_length = umd->length;
@@ -152,9 +155,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
lmd->md_iov.iov[0].iov_base = umd->start;
lmd->md_iov.iov[0].iov_len = umd->length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > (int)umd->length)) // illegal max_size
+umd->max_size > (int)umd->length)) /* illegal max_size */
return -EINVAL;
}
 
@@ -206,7 +209,8 @@ lnet_md_deconstruct(lnet_libmd_t *lmd, lnet_md_t *umd)
 * and that's all.
 */
umd->start = lmd->md_start;
-   umd->length = ((lmd->md_options & (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) 
?
+   umd->length = ((lmd->md_options &
+   (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) ?
  lmd->md_length : lmd->md_niov;
umd->threshold = lmd->md_threshold;
umd->max_size = lmd->md_max_size;
@@ -263,15 +267,15 @@ int
 LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
 lnet_unlink_t unlink, lnet_handle_md_t *handle)
 {
-   LIST_HEAD   (matches);
-  

[PATCH] staging:lustre: lib-md.c fix checkpath warnings and errors.

2014-08-24 Thread Janet Liu
Sliences the following warning and error:

  WARNING: line over 80 characters
  WARNING: space prohibited between function name and open parenthesis '('
  ERROR: do not use C99 // comments
  ERROR: trailing statements should be on next line

Signed-off-by: Janet Liu 
---
 drivers/staging/lustre/lnet/lnet/lib-md.c |   44 -
 1 file changed, 24 insertions(+), 20 deletions(-)

diff --git a/drivers/staging/lustre/lnet/lnet/lib-md.c 
b/drivers/staging/lustre/lnet/lnet/lib-md.c
index 1f386e0..ef3733d 100644
--- a/drivers/staging/lustre/lnet/lnet/lib-md.c
+++ b/drivers/staging/lustre/lnet/lnet/lib-md.c
@@ -52,7 +52,8 @@ lnet_md_unlink(lnet_libmd_t *md)
 
md->md_flags |= LNET_MD_FLAG_ZOMBIE;
 
-   /* Disassociate from ME (if any), and unlink it if it was 
created
+   /* Disassociate from ME (if any),
+* and unlink it if it was created
 * with LNET_UNLINK */
if (me != NULL) {
/* detach MD from portal */
@@ -109,11 +110,12 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.iov, umd->start,
-  niov * sizeof (lmd->md_iov.iov[0]));
+  niov * sizeof(lmd->md_iov.iov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the base address on trust */
-   if (lmd->md_iov.iov[i].iov_len <= 0) /* invalid length 
*/
+/* invalid length */
+   if (lmd->md_iov.iov[i].iov_len <= 0)
return -EINVAL;
 
total_length += lmd->md_iov.iov[i].iov_len;
@@ -121,20 +123,21 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int 
unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
-   (umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
+
+   (umd->max_size < 0 ||
+   umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
 
} else if ((umd->options & LNET_MD_KIOV) != 0) {
lmd->md_niov = niov = umd->length;
memcpy(lmd->md_iov.kiov, umd->start,
-  niov * sizeof (lmd->md_iov.kiov[0]));
+  niov * sizeof(lmd->md_iov.kiov[0]));
 
for (i = 0; i < (int)niov; i++) {
/* We take the page pointer on trust */
if (lmd->md_iov.kiov[i].kiov_offset +
-   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE )
+   lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE)
return -EINVAL; /* invalid length */
 
total_length += lmd->md_iov.kiov[i].kiov_len;
@@ -142,9 +145,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
 
lmd->md_length = total_length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > total_length)) // illegal max_size
+umd->max_size > total_length)) /* illegal max_size */
return -EINVAL;
} else {   /* contiguous */
lmd->md_length = umd->length;
@@ -152,9 +155,9 @@ lnet_md_build(lnet_libmd_t *lmd, lnet_md_t *umd, int unlink)
lmd->md_iov.iov[0].iov_base = umd->start;
lmd->md_iov.iov[0].iov_len = umd->length;
 
-   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /* max size used 
*/
+   if ((umd->options & LNET_MD_MAX_SIZE) != 0 && /*max size used*/
(umd->max_size < 0 ||
-umd->max_size > (int)umd->length)) // illegal max_size
+umd->max_size > (int)umd->length)) /* illegal max_size */
return -EINVAL;
}
 
@@ -206,7 +209,8 @@ lnet_md_deconstruct(lnet_libmd_t *lmd, lnet_md_t *umd)
 * and that's all.
 */
umd->start = lmd->md_start;
-   umd->length = ((lmd->md_options & (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) 
?
+   umd->length = ((lmd->md_options &
+   (LNET_MD_IOVEC | LNET_MD_KIOV)) == 0) ?
  lmd->md_length : lmd->md_niov;
umd->threshold = lmd->md_threshold;
umd->max_size = lmd->md_max_size;
@@ -263,15 +267,15 @@ int
 LNetMDAttach(lnet_handle_me_t meh, lnet_md_t umd,
 lnet_unlink_t unlink, lnet_handle_md_t *handle)
 {
-   LIST_HEAD   (matches);
-  

[PATCH] drivers: staging: rtl8192u: Fix switch and case should be at the same indent errors

2014-08-24 Thread Greg Donald
Fix checkpatch.pl switch and case should be at the same indent errors

Signed-off-by: Greg Donald 
---
 drivers/staging/rtl8192u/r8192U_core.c | 510 -
 1 file changed, 252 insertions(+), 258 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8192U_core.c 
b/drivers/staging/rtl8192u/r8192U_core.c
index eb96bed..3707d03 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -1071,83 +1071,83 @@ static void rtl8192_config_rate(struct net_device *dev, 
u16 *rate_config)
for (i = 0; i < net->rates_len; i++) {
basic_rate = net->rates[i]&0x7f;
switch (basic_rate) {
-   case MGN_1M:
-   *rate_config |= RRSR_1M;
-   break;
-   case MGN_2M:
-   *rate_config |= RRSR_2M;
-   break;
-   case MGN_5_5M:
-   *rate_config |= RRSR_5_5M;
-   break;
-   case MGN_11M:
-   *rate_config |= RRSR_11M;
-   break;
-   case MGN_6M:
-   *rate_config |= RRSR_6M;
-   break;
-   case MGN_9M:
-   *rate_config |= RRSR_9M;
-   break;
-   case MGN_12M:
-   *rate_config |= RRSR_12M;
-   break;
-   case MGN_18M:
-   *rate_config |= RRSR_18M;
-   break;
-   case MGN_24M:
-   *rate_config |= RRSR_24M;
-   break;
-   case MGN_36M:
-   *rate_config |= RRSR_36M;
-   break;
-   case MGN_48M:
-   *rate_config |= RRSR_48M;
-   break;
-   case MGN_54M:
-   *rate_config |= RRSR_54M;
-   break;
+   case MGN_1M:
+   *rate_config |= RRSR_1M;
+   break;
+   case MGN_2M:
+   *rate_config |= RRSR_2M;
+   break;
+   case MGN_5_5M:
+   *rate_config |= RRSR_5_5M;
+   break;
+   case MGN_11M:
+   *rate_config |= RRSR_11M;
+   break;
+   case MGN_6M:
+   *rate_config |= RRSR_6M;
+   break;
+   case MGN_9M:
+   *rate_config |= RRSR_9M;
+   break;
+   case MGN_12M:
+   *rate_config |= RRSR_12M;
+   break;
+   case MGN_18M:
+   *rate_config |= RRSR_18M;
+   break;
+   case MGN_24M:
+   *rate_config |= RRSR_24M;
+   break;
+   case MGN_36M:
+   *rate_config |= RRSR_36M;
+   break;
+   case MGN_48M:
+   *rate_config |= RRSR_48M;
+   break;
+   case MGN_54M:
+   *rate_config |= RRSR_54M;
+   break;
}
}
for (i = 0; i < net->rates_ex_len; i++) {
basic_rate = net->rates_ex[i]&0x7f;
switch (basic_rate) {
-   case MGN_1M:
-   *rate_config |= RRSR_1M;
-   break;
-   case MGN_2M:
-   *rate_config |= RRSR_2M;
-   break;
-   case MGN_5_5M:
-   *rate_config |= RRSR_5_5M;
-   break;
-   case MGN_11M:
-   *rate_config |= RRSR_11M;
-   break;
-   case MGN_6M:
-   *rate_config |= RRSR_6M;
-   break;
-   case MGN_9M:
-   *rate_config |= RRSR_9M;
-   break;
-   case MGN_12M:
-   *rate_config |= RRSR_12M;
-   break;
-   case MGN_18M:
-   *rate_config |= RRSR_18M;
-   break;
-   case MGN_24M:
-   *rate_config |= RRSR_24M;
-   break

[PATCH] drivers: staging: rtl8821ae: Fix spaces required around that '<' errors

2014-08-24 Thread Greg Donald
Fix checkpatch.pl spaces required around that '<' errors

Signed-off-by: Greg Donald 
---
 drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c |  2 +-
 drivers/staging/rtl8821ae/rtl8821ae/phy.c | 18 +-
 drivers/staging/rtl8821ae/rtl8821ae/rf.c  |  2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c 
b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
index da3f62d..edcf8dd 100644
--- a/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
+++ b/drivers/staging/rtl8821ae/btcoexist/halbtc8723b2ant.c
@@ -1323,7 +1323,7 @@ static void halbtc8723b2ant_set_ant_path(struct 
btc_coexist *btcoexist,
btcoexist->btc_get(btcoexist, BTC_GET_BL_EXT_SWITCH, &pg_ext_switch);
btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver);
 
-   if ((fw_ver<0xc) || pg_ext_switch)
+   if ((fw_ver < 0xc) || pg_ext_switch)
use_ext_switch = true;
 
if (init_hwcfg) {
diff --git a/drivers/staging/rtl8821ae/rtl8821ae/phy.c 
b/drivers/staging/rtl8821ae/rtl8821ae/phy.c
index 1dd3301..c56936d 100644
--- a/drivers/staging/rtl8821ae/rtl8821ae/phy.c
+++ b/drivers/staging/rtl8821ae/rtl8821ae/phy.c
@@ -1252,7 +1252,7 @@ static bool 
_rtl8812ae_phy_config_mac_with_headerfile(struct ieee80211_hw *hw)
for (i = 0; i < arraylength; i += 2) {
v1 = ptrarray[i];
v2 = (u8) ptrarray[i + 1];
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
rtl_write_byte(rtlpriv, v1, (u8) v2);
} else {
if (!_rtl8821ae_check_condition(hw,v1)) {
@@ -1296,7 +1296,7 @@ static bool 
_rtl8821ae_phy_config_mac_with_headerfile(struct ieee80211_hw *hw)
for (i = 0; i < arraylength; i += 2) {
v1 = ptrarray[i];
v2 = (u8) ptrarray[i + 1];
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
rtl_write_byte(rtlpriv, v1, (u8) v2);
continue;
} else {
@@ -1342,7 +1342,7 @@ static bool 
_rtl8812ae_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
for (i = 0; i < arraylen; i += 2) {
v1 = array_table[i];
v2 = array_table[i+1];
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
_rtl8812ae_config_bb_reg(hw, v1, v2);
continue;
} else {/*This line is the start line of branch.*/
@@ -1431,7 +1431,7 @@ static bool 
_rtl8821ae_phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
for (i = 0; i < arraylen; i += 2) {
v1 = array_table[i];
v2 = array_table[i+1];
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
_rtl8821ae_config_bb_reg(hw, v1, v2);
continue;
} else {/*This line is the start line of branch.*/
@@ -1566,7 +1566,7 @@ static bool 
_rtl8812ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
v5 = phy_regarray_table_pg[i+4];
v6 = phy_regarray_table_pg[i+5];
 
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
if ( (v4 == 0xfe) || (v4 == 0xffe))
mdelay(50);
else
@@ -1617,7 +1617,7 @@ static bool 
_rtl8821ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
v5 = phy_regarray_table_pg[i+4];
v6 = phy_regarray_table_pg[i+5];
 
-   if (v1<0xCDCDCDCD) {
+   if (v1 < 0xCDCDCDCD) {
if (v4 == 0xfe)
mdelay(50);
else if (v4 == 0xfd)
@@ -1682,7 +1682,7 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct 
ieee80211_hw * hw,
for (i = 0; i < radioa_arraylen_a; i = i + 2) {
v1 = radioa_array_table_a[i];
v2 = radioa_array_table_a[i+1];
-   if (v1<0xcdcdcdcd) {
+   if (v1 < 0xcdcdcdcd) {
_rtl8821ae_config_rf_radio_a(hw,v1,v2);
continue;
}else{/*This line is the start line of branch.*/
@@ -1714,7 +1714,7 @@ bool rtl8812ae_phy_config_rf_with_headerfile(struct 
ieee80211_hw * hw,
for (i = 0; i < radioa_arraylen_b; i = i + 2) {
v1 = radioa_array_table_b[i];
v2 = radioa_array_table_b[i+1];
-   if (v1<0xcdcdcdcd) {
+  

Re: Cash Alert

2014-08-24 Thread © 2014 Heritage Lottery Board


-- 
Congrats:You have won (  500,000.00 Pounds )Contact Mr Williams Hunter 
:wu.transfer...@qq.com . Mobile:+447024072380
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel