linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/10] staging: wilc1000: wilc_wlan.c: use BIT(x) macro
@ 2015-09-16 11:11 Chaehyun Lim
  2015-09-16 11:11 ` [PATCH 02/10] staging: wilc1000: replace INLINE with static inline Chaehyun Lim
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Chaehyun Lim @ 2015-09-16 11:11 UTC (permalink / raw)
  To: gregkh
  Cc: johnny.kim, rachel.kim, chris.park, tony.cho, leo.kim,
	linux-wireless, devel, Chaehyun Lim

Remove bit shift macro that is custom defined, then replace BIT(x)
macro.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
---
 drivers/staging/wilc1000/wilc_wlan.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c
index 7496c1f..add9eeb 100644
--- a/drivers/staging/wilc1000/wilc_wlan.c
+++ b/drivers/staging/wilc1000/wilc_wlan.c
@@ -2177,7 +2177,6 @@ _fail_:
 
 }
 
-#define BIT31 (1 << 31)
 u16 Set_machw_change_vir_if(bool bValue)
 {
 	u16 ret;
@@ -2191,9 +2190,9 @@ u16 Set_machw_change_vir_if(bool bValue)
 	}
 
 	if (bValue)
-		reg |= (BIT31);
+		reg |= BIT(31);
 	else
-		reg &= ~(BIT31);
+		reg &= ~BIT(31);
 
 	ret = (&g_wlan)->hif_func.hif_write_reg(WILC_CHANGING_VIR_IF, reg);
 
-- 
2.5.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-09-17  4:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16 11:11 [PATCH 01/10] staging: wilc1000: wilc_wlan.c: use BIT(x) macro Chaehyun Lim
2015-09-16 11:11 ` [PATCH 02/10] staging: wilc1000: replace INLINE with static inline Chaehyun Lim
2015-09-16 11:11 ` [PATCH 03/10] staging: wilc1000: remove INLINE macro Chaehyun Lim
2015-09-17  4:46   ` Greg KH
2015-09-16 11:11 ` [PATCH 04/10] staging: wilc1000: replace __inline with inline Chaehyun Lim
2015-09-16 11:11 ` [PATCH 05/10] staging: wilc1000: replace int8_t with int Chaehyun Lim
2015-09-16 11:11 ` [PATCH 06/10] staging: wilc1000: linux_wlan_spi.c: fix kzalloc error check Chaehyun Lim
2015-09-16 11:11 ` [PATCH 07/10] staging: wilc1000: remove unused defines Chaehyun Lim
2015-09-16 11:11 ` [PATCH 08/10] staging: wilc1000: remove WILC_TIME typedef Chaehyun Lim
2015-09-16 11:11 ` [PATCH 09/10] staging: wilc1000: remove useless comment Chaehyun Lim
2015-09-16 11:11 ` [PATCH 10/10] staging: wilc1000: remove declaration of wilc_get_chipid Chaehyun Lim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).