summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-02-25 19:32:44 +0300
committerFelix Fietkau <nbd@nbd.name>2019-02-26 12:28:19 +0300
commit2858f60a16799f30aad9b4894d654333a503b94a (patch)
tree85e0f0baa1773b3baf60f32e1027af511fb02d5a /drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
parent4606a26c0c51d23401a00d787aa61e508f3e14a7 (diff)
downloadlinux-2858f60a16799f30aad9b4894d654333a503b94a.tar.xz
mt76: mt76x2: unify mt76x2[u]_mac_resume
They are now the same and short enough to be turned into an inline function Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76x2/mac.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt76x2/mac.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h b/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
index 4c8e20bce920..42ff221d7706 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
+++ b/drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
@@ -25,6 +25,12 @@ struct mt76x02_vif;
int mt76x2_mac_start(struct mt76x02_dev *dev);
void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force);
-void mt76x2_mac_resume(struct mt76x02_dev *dev);
+
+static inline void mt76x2_mac_resume(struct mt76x02_dev *dev)
+{
+ mt76_wr(dev, MT_MAC_SYS_CTRL,
+ MT_MAC_SYS_CTRL_ENABLE_TX |
+ MT_MAC_SYS_CTRL_ENABLE_RX);
+}
#endif