Skip to content

Commit 2883401

Browse files
committed
wifi: mt76: mt792x: declare USB bus-reset helpers
The 7.2.6 bump brought in mt792xu_reset_work_init(), mt792xu_reset_work_cleanup(), mt792xu_check_bus() and mt792xu_reset_on_bus_error() in mt792x_usb.c, but not their declarations in mt792x.h, triggering -Wmissing-prototypes warnings. Add the prototypes as upstream has them. The mt7921/mt7925 USB callers of these helpers are not wired up in this tree yet. Signed-off-by: Rudy Andram <rmandrad@gmail.com>
1 parent a5c3430 commit 2883401

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/net/wireless/mediatek/mt76

‎drivers/net/wireless/mediatek/mt76/mt792x.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,10 @@ u32 mt792xu_rmw(struct mt76_dev *dev, u32 addr, u32 mask, u32 val);
529529
void mt792xu_copy(struct mt76_dev *dev, u32 offset, const void *data, int len);
530530
void mt792xu_disconnect(struct usb_interface *usb_intf);
531531
void mt792xu_stop(struct ieee80211_hw *hw, bool suspend);
532+
void mt792xu_reset_work_init(struct mt792x_dev *dev);
533+
void mt792xu_reset_work_cleanup(struct mt792x_dev *dev);
534+
int mt792xu_check_bus(struct mt792x_dev *dev);
535+
int mt792xu_reset_on_bus_error(struct mt792x_dev *dev);
532536

533537
static inline void
534538
mt792x_skb_add_usb_sdio_hdr(struct mt792x_dev *dev, struct sk_buff *skb,

0 commit comments

Comments
 (0)