Skip to content

Commit

Permalink
mt7603: core: do not use magic numbers in mt7603_reg_map
Browse files Browse the repository at this point in the history
Use register definitions instead of magic numbers in mt7603_reg_map

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Mar 16, 2019
1 parent 81a32aa commit 48dc7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mt7603/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 48dc7e9

Please sign in to comment.