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:
047348f
)
mt7603: core: do not use magic numbers in mt7603_reg_map
author
Lorenzo Bianconi
<lorenzo@kernel.org>
Sat, 16 Mar 2019 15:45:36 +0000
(16:45 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 1 May 2019 11:03:56 +0000
(13:03 +0200)
Use register definitions instead of magic numbers in mt7603_reg_map
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7603/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt7603/core.c
b/drivers/net/wireless/mediatek/mt76/mt7603/core.c
index e32a16f2ebe8f0ac5e1ecfc0fbc6eda3cb2f726c..4668c573f74a0da9bf88e5ea78f055c416203c5e 100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt7603/core.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt7603/core.c
@@
-53,8
+53,8
@@
irqreturn_t mt7603_irq_handler(int irq, void *dev_instance)
u32 mt7603_reg_map(struct mt7603_dev *dev, u32 addr)
{
- u32 base = addr &
GENMASK(31, 19)
;
- u32 offset = addr &
GENMASK(18, 0)
;
+ u32 base = addr &
MT_MCU_PCIE_REMAP_2_BASE
;
+ u32 offset = addr &
MT_MCU_PCIE_REMAP_2_OFFSET
;
dev->bus_ops->wr(&dev->mt76, MT_MCU_PCIE_REMAP_2, base);