Skip to content

Commit

Permalink
mt76: get rid of mt76_wcid_hw routine
Browse files Browse the repository at this point in the history
mt76_wcid_hw() is no longer used.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Jul 11, 2022
1 parent 4bf8c20 commit e6c6bf8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mt76.h
Expand Up @@ -893,16 +893,6 @@ extern struct ieee80211_rate mt76_rates[12];

#define mt76_hw(dev) (dev)->mphy.hw

static inline struct ieee80211_hw *
mt76_wcid_hw(struct mt76_dev *dev, u16 wcid)
{
if (wcid <= MT76_N_WCIDS &&
mt76_wcid_mask_test(dev->wcid_phy_mask, wcid))
return dev->phys[MT_BAND1]->hw;

return dev->phy.hw;
}

bool __mt76_poll(struct mt76_dev *dev, u32 offset, u32 mask, u32 val,
int timeout);

Expand Down

0 comments on commit e6c6bf8

Please sign in to comment.