projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf28d79
)
ath9k_hw: fix REG_SET_BIT and REG_CLR_BIT for multiple bits
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 11 Mar 2011 20:38:17 +0000
(21:38 +0100)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 14 Mar 2011 18:46:58 +0000
(14:46 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.h
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hw.h
b/drivers/net/wireless/ath/ath9k/hw.h
index ef79f4c876ca9e0577b8ee440076b3aab57dd430..6650fd48415cb6f0cb2c558521aca3fc6b15f72f 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hw.h
+++ b/
drivers/net/wireless/ath/ath9k/hw.h
@@
-95,9
+95,9
@@
#define REG_READ_FIELD(_a, _r, _f) \
(((REG_READ(_a, _r) & _f) >> _f##_S))
#define REG_SET_BIT(_a, _r, _f) \
- REG_WRITE(_a, _r, REG_READ(_a, _r) |
_f
)
+ REG_WRITE(_a, _r, REG_READ(_a, _r) |
(_f)
)
#define REG_CLR_BIT(_a, _r, _f) \
- REG_WRITE(_a, _r, REG_READ(_a, _r) & ~
_f
)
+ REG_WRITE(_a, _r, REG_READ(_a, _r) & ~
(_f)
)
#define DO_DELAY(x) do { \
if ((++(x) % 64) == 0) \