Skip to contentSkip to conversation

mt76x2: introduce mt76x2_init_device routine

RFC New Lorenzo Bianconi 1 participant 1 message Jun 10, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC v3 4/19 mt76x2: introduce mt76x2_init_device routine

Add mt76x2_init_device routine in order to reuse common pcie/usb mac80211 initialization code supporting mt76x2u based device

---
 drivers/net/wireless/mediatek/mt76/mt76x2.h   |  1 +
 .../net/wireless/mediatek/mt76/mt76x2_init.c  | 58 ++++++++++---------
 2 files changed, 33 insertions(+), 26 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76x2.h +1 -0
index ee22dd4b4e19..52d70a9b9b6f 100644
@@ -213,6 +213,7 @@ extern const struct ieee80211_ops mt76x2_ops;
 struct mt76x2_dev *mt76x2_alloc_device(struct device *pdev);
 int mt76x2_register_device(struct mt76x2_dev *dev);
 void mt76x2_init_debugfs(struct mt76x2_dev *dev);
+void mt76x2_init_device(struct mt76x2_dev *dev);
 
 irqreturn_t mt76x2_irq_handler(int irq, void *dev_instance);
 void mt76x2_phy_power_on(struct mt76x2_dev *dev);
drivers/net/wireless/mediatek/mt76/mt76x2_init.c +32 -26

93 lines not on this page · raw message

Signature · 1 line
2.17.1