From: Chaehyun Lim <chaehyun.lim@gmail.com>
To: gregkh@linuxfoundation.org
Cc: johnny.kim@atmel.com, rachel.kim@atmel.com, chris.park@atmel.com,
tony.cho@atmel.com, leo.kim@atmel.com,
linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org,
Chaehyun Lim <chaehyun.lim@gmail.com>
Subject: [PATCH 01/10] staging: wilc1000: wilc_wlan.c: use BIT(x) macro
Date: Wed, 16 Sep 2015 20:11:26 +0900 [thread overview]
Message-ID: <1442401895-7463-1-git-send-email-chaehyun.lim@gmail.com> (raw)
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
next reply other threads:[~2015-09-16 11:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 11:11 Chaehyun Lim [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1442401895-7463-1-git-send-email-chaehyun.lim@gmail.com \
--to=chaehyun.lim@gmail.com \
--cc=chris.park@atmel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=johnny.kim@atmel.com \
--cc=leo.kim@atmel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=rachel.kim@atmel.com \
--cc=tony.cho@atmel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).