Commit 7a07adcd authored by Lorenzo Bianconi's avatar Lorenzo Bianconi Committed by Felix Fietkau

mt76: rename mt76x02_util.h in mt76x02.h

Rename mt76x02_util.h header file in mt76x02.h since now contains
all mt76x02 related definitions and not just utility routines
declarations
Signed-off-by: default avatarLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 8e3ed001
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
#include "eeprom.h" #include "eeprom.h"
#include "trace.h" #include "trace.h"
#include "mcu.h" #include "mcu.h"
#include "../mt76x02_util.h"
#include "../mt76x02_dma.h"
#include "initvals.h" #include "initvals.h"
static void mt76x0_vht_cap_mask(struct ieee80211_supported_band *sband) static void mt76x0_vht_cap_mask(struct ieee80211_supported_band *sband)
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <linux/etherdevice.h>
#include "mt76x0.h" #include "mt76x0.h"
#include "trace.h" #include "trace.h"
#include "../mt76x02_util.h"
#include <linux/etherdevice.h>
void mt76x0_mac_set_protection(struct mt76x02_dev *dev, bool legacy_prot, void mt76x0_mac_set_protection(struct mt76x02_dev *dev, bool legacy_prot,
int ht_mode) int ht_mode)
......
...@@ -13,9 +13,8 @@ ...@@ -13,9 +13,8 @@
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include "mt76x0.h"
#include "../mt76x02_util.h"
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include "mt76x0.h"
int mt76x0_config(struct ieee80211_hw *hw, u32 changed) int mt76x0_config(struct ieee80211_hw *hw, u32 changed)
{ {
......
...@@ -25,10 +25,7 @@ ...@@ -25,10 +25,7 @@
#include <net/mac80211.h> #include <net/mac80211.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include "../mt76.h" #include "../mt76x02.h"
#include "../mt76x02_regs.h"
#include "../mt76x02_mac.h"
#include "../mt76x02_util.h"
#include "eeprom.h" #include "eeprom.h"
#define MT_CALIBRATE_INTERVAL (4 * HZ) #define MT_CALIBRATE_INTERVAL (4 * HZ)
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include "mt76x0.h" #include "mt76x0.h"
#include "mcu.h" #include "mcu.h"
#include "../mt76x02_dma.h"
#include "../mt76x02_util.h"
static int mt76x0e_start(struct ieee80211_hw *hw) static int mt76x0e_start(struct ieee80211_hw *hw)
{ {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include "mt76x0.h" #include "mt76x0.h"
#include "mcu.h" #include "mcu.h"
#include "trace.h" #include "trace.h"
#include "../mt76x02_util.h"
#include "../mt76x02_usb.h" #include "../mt76x02_usb.h"
static struct usb_device_id mt76x0_device_table[] = { static struct usb_device_id mt76x0_device_table[] = {
......
...@@ -20,8 +20,11 @@ ...@@ -20,8 +20,11 @@
#include <linux/kfifo.h> #include <linux/kfifo.h>
#include "mt76.h"
#include "mt76x02_regs.h"
#include "mt76x02_mac.h" #include "mt76x02_mac.h"
#include "mt76x02_dfs.h" #include "mt76x02_dfs.h"
#include "mt76x02_dma.h"
struct mt76x02_mac_stats { struct mt76x02_mac_stats {
u64 rx_stat[6]; u64 rx_stat[6];
......
...@@ -15,10 +15,7 @@ ...@@ -15,10 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "mt76.h" #include "mt76x02.h"
#include "mt76x02_regs.h"
#include "mt76x02_mac.h"
#include "mt76x02_util.h"
enum mt76x02_cipher_type enum mt76x02_cipher_type
mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data) mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data)
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include "mt76.h" #include "mt76x02.h"
#include "mt76x02_dma.h"
#include "mt76x02_util.h"
#include "mt76x02_mac.h"
static int static int
mt76x02_init_tx_queue(struct mt76_dev *dev, struct mt76_queue *q, mt76x02_init_tx_queue(struct mt76_dev *dev, struct mt76_queue *q,
......
...@@ -17,10 +17,7 @@ ...@@ -17,10 +17,7 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include "mt76.h" #include "mt76x02.h"
#include "mt76x02_regs.h"
#include "mt76x02_dma.h"
#include "mt76x02_util.h"
void mt76x02_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control, void mt76x02_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
struct sk_buff *skb) struct sk_buff *skb)
......
...@@ -14,10 +14,7 @@ ...@@ -14,10 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "mt76.h" #include "mt76x02.h"
#include "mt76x02_dma.h"
#include "mt76x02_mac.h"
#include "mt76x02_util.h"
static int mt76x02u_check_skb_rooms(struct sk_buff *skb) static int mt76x02u_check_skb_rooms(struct sk_buff *skb)
{ {
......
...@@ -16,10 +16,7 @@ ...@@ -16,10 +16,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include "mt76.h" #include "mt76x02.h"
#include "mt76x02_regs.h"
#include "mt76x02_mac.h"
#include "mt76x02_util.h"
#define CCK_RATE(_idx, _rate) { \ #define CCK_RATE(_idx, _rate) { \
.bitrate = _rate, \ .bitrate = _rate, \
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
*/ */
#include "mt76x2.h" #include "mt76x2.h"
#include "../mt76x02_util.h"
void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force) void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force)
{ {
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
#ifndef __MT76x2_MAC_H #ifndef __MT76x2_MAC_H
#define __MT76x2_MAC_H #define __MT76x2_MAC_H
#include "../mt76.h" #include "mt76x2.h"
#include "../mt76x02_mac.h"
struct mt76x02_dev; struct mt76x02_dev;
struct mt76x2_sta; struct mt76x2_sta;
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "mt76x2.h" #include "mt76x2.h"
#include "mcu.h" #include "mcu.h"
#include "eeprom.h" #include "eeprom.h"
#include "../mt76x02_dma.h"
int mt76x2_mcu_set_channel(struct mt76x02_dev *dev, u8 channel, u8 bw, int mt76x2_mcu_set_channel(struct mt76x02_dev *dev, u8 channel, u8 bw,
u8 bw_index, bool scan) u8 bw_index, bool scan)
......
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
#define MT_CALIBRATE_INTERVAL HZ #define MT_CALIBRATE_INTERVAL HZ
#include "../mt76.h" #include "../mt76x02.h"
#include "../mt76x02_regs.h"
#include "../mt76x02_util.h"
#include "mac.h" #include "mac.h"
#include "dfs.h" #include "dfs.h"
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "mt76x2.h" #include "mt76x2.h"
#include "mcu.h" #include "mcu.h"
#include "../mt76x02_dma.h"
#define MT7612U_EEPROM_SIZE 512 #define MT7612U_EEPROM_SIZE 512
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <linux/delay.h> #include <linux/delay.h>
#include "mt76x2.h" #include "mt76x2.h"
#include "trace.h" #include "trace.h"
#include "../mt76x02_util.h"
void mt76x2_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q) void mt76x2_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q)
{ {
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
#include "mt76x2.h" #include "mt76x2.h"
#include "../mt76x02_util.h"
#define RADAR_SPEC(m, len, el, eh, wl, wh, \ #define RADAR_SPEC(m, len, el, eh, wl, wh, \
w_tolerance, tl, th, t_tolerance, \ w_tolerance, tl, th, t_tolerance, \
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
*/ */
#include "mt76x2.h" #include "mt76x2.h"
#include "../mt76x02_dma.h"
#include "../mt76x02_util.h"
void mt76x2_tx_tasklet(unsigned long data) void mt76x2_tx_tasklet(unsigned long data)
{ {
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "mt76x2.h" #include "mt76x2.h"
#include "eeprom.h" #include "eeprom.h"
#include "mcu.h" #include "mcu.h"
#include "../mt76x02_util.h"
#include "../mt76x02_dma.h"
static void static void
mt76x2_mac_pbf_init(struct mt76x02_dev *dev) mt76x2_mac_pbf_init(struct mt76x02_dev *dev)
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include "mcu.h" #include "mcu.h"
#include "eeprom.h" #include "eeprom.h"
#include "trace.h" #include "trace.h"
#include "../mt76x02_util.h"
void mt76x2_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr) void mt76x2_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr)
{ {
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
#include "mt76x2.h" #include "mt76x2.h"
#include "../mt76x02_util.h"
static int static int
mt76x2_start(struct ieee80211_hw *hw) mt76x2_start(struct ieee80211_hw *hw)
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#include "mt76x2.h" #include "mt76x2.h"
#include "mcu.h" #include "mcu.h"
#include "eeprom.h" #include "eeprom.h"
#include "../mt76x02_dma.h"
static int static int
mt76pci_load_rom_patch(struct mt76x02_dev *dev) mt76pci_load_rom_patch(struct mt76x02_dev *dev)
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
*/ */
#include "mt76x2.h" #include "mt76x2.h"
#include "../mt76x02_util.h"
#include "../mt76x02_dma.h"
struct beacon_bc_data { struct beacon_bc_data {
struct mt76x02_dev *dev; struct mt76x02_dev *dev;
......
...@@ -17,9 +17,8 @@ ...@@ -17,9 +17,8 @@
#include <linux/delay.h> #include <linux/delay.h>
#include "mt76x2u.h" #include "mt76x2u.h"
#include "../mt76x02_util.h"
#include "../mt76x02_phy.h"
#include "eeprom.h" #include "eeprom.h"
#include "../mt76x02_phy.h"
#include "../mt76x02_usb.h" #include "../mt76x02_usb.h"
static void mt76x2u_init_dma(struct mt76x02_dev *dev) static void mt76x2u_init_dma(struct mt76x02_dev *dev)
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
#include "mt76x2u.h" #include "mt76x2u.h"
#include "../mt76x02_util.h"
static int mt76x2u_start(struct ieee80211_hw *hw) static int mt76x2u_start(struct ieee80211_hw *hw)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment