projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7ed06a
)
staging: wilc1000: wilc_wlan.c: use BIT(x) macro
author
Chaehyun Lim
<
[email protected]
>
Wed, 16 Sep 2015 11:11:26 +0000
(20:11 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 17 Sep 2015 04:46:01 +0000
(21:46 -0700)
Remove bit shift macro that is custom defined, then replace BIT(x)
macro.
Signed-off-by: Chaehyun Lim <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/wilc1000/wilc_wlan.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/wilc_wlan.c
b/drivers/staging/wilc1000/wilc_wlan.c
index 22310cc6c9535695822b88b9c43ae75ce0b4f92a..47c743b0c1e53b0ec672450f979846ad362f8c46 100644
(file)
--- a/
drivers/staging/wilc1000/wilc_wlan.c
+++ b/
drivers/staging/wilc1000/wilc_wlan.c
@@
-2160,7
+2160,6
@@
_fail_:
}
-#define BIT31 (1 << 31)
u16 Set_machw_change_vir_if(bool bValue)
{
u16 ret;
@@
-2174,9
+2173,9
@@
u16 Set_machw_change_vir_if(bool bValue)
}
if (bValue)
- reg |=
(BIT
31);
+ reg |=
BIT(
31);
else
- reg &= ~
(BIT
31);
+ reg &= ~
BIT(
31);
ret = (&g_wlan)->hif_func.hif_write_reg(WILC_CHANGING_VIR_IF, reg);