mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 21:36:52 +00:00
Remove the following unused routines for usb buffer allocation/free/submit: - mt76x0_usb_alloc_buf - mt76x0_usb_free_buf - mt76x0_usb_submit_buf Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2015 Jakub Kicinski <[email protected]>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2
|
|
* as published by the Free Software Foundation
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __MT76X0U_USB_H
|
|
#define __MT76X0U_USB_H
|
|
|
|
#include "mt76x0.h"
|
|
|
|
#define MT7610_FIRMWARE "mediatek/mt7610u.bin"
|
|
|
|
#define MT_VEND_REQ_MAX_RETRY 10
|
|
#define MT_VEND_REQ_TOUT_MS 300
|
|
|
|
#define MT_VEND_DEV_MODE_RESET 1
|
|
|
|
#define MT_VEND_BUF sizeof(__le32)
|
|
|
|
static inline struct usb_device *mt76x0_to_usb_dev(struct mt76x0_dev *mt76x0)
|
|
{
|
|
return interface_to_usbdev(to_usb_interface(mt76x0->mt76.dev));
|
|
}
|
|
|
|
static inline struct usb_device *mt76_to_usb_dev(struct mt76_dev *mt76)
|
|
{
|
|
return interface_to_usbdev(to_usb_interface(mt76->dev));
|
|
}
|
|
|
|
static inline bool mt76x0_urb_has_error(struct urb *urb)
|
|
{
|
|
return urb->status &&
|
|
urb->status != -ENOENT &&
|
|
urb->status != -ECONNRESET &&
|
|
urb->status != -ESHUTDOWN;
|
|
}
|
|
|
|
#endif
|