]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mt76: rename mt76x02_util.h in mt76x02.h
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Fri, 5 Oct 2018 08:00:33 +0000 (10:00 +0200)
committerFelix Fietkau <nbd@nbd.name>
Fri, 5 Oct 2018 18:05:46 +0000 (20:05 +0200)
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: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
27 files changed:
drivers/net/wireless/mediatek/mt76/mt76x0/init.c
drivers/net/wireless/mediatek/mt76/mt76x0/mac.c
drivers/net/wireless/mediatek/mt76/mt76x0/main.c
drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h
drivers/net/wireless/mediatek/mt76/mt76x0/pci.c
drivers/net/wireless/mediatek/mt76/mt76x0/usb.c
drivers/net/wireless/mediatek/mt76/mt76x02.h [moved from drivers/net/wireless/mediatek/mt76/mt76x02_util.h with 98% similarity]
drivers/net/wireless/mediatek/mt76/mt76x02_mac.c
drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c
drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
drivers/net/wireless/mediatek/mt76/mt76x02_util.c
drivers/net/wireless/mediatek/mt76/mt76x2/mac.c
drivers/net/wireless/mediatek/mt76/mt76x2/mac.h
drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c
drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h
drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h
drivers/net/wireless/mediatek/mt76/mt76x2/pci_core.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_dfs.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_dma.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mac.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c
drivers/net/wireless/mediatek/mt76/mt76x2/pci_tx.c
drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c
drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c

index d0f2ee6d70402fab2b6c538b2766a27eb466a78b..ee2b8e885608a6c8af56e3eb924d16fc7db98fc6 100644 (file)
@@ -18,9 +18,6 @@
 #include "eeprom.h"
 #include "trace.h"
 #include "mcu.h"
-#include "../mt76x02_util.h"
-#include "../mt76x02_dma.h"
-
 #include "initvals.h"
 
 static void mt76x0_vht_cap_mask(struct ieee80211_supported_band *sband)
index 793297cd6bf1d85f06a68d407243392d4d0fe6e3..7a422c5902113d46e5c02096790671ea49b5620a 100644 (file)
  * GNU General Public License for more details.
  */
 
+#include <linux/etherdevice.h>
+
 #include "mt76x0.h"
 #include "trace.h"
-#include "../mt76x02_util.h"
-#include <linux/etherdevice.h>
 
 void mt76x0_mac_set_protection(struct mt76x02_dev *dev, bool legacy_prot,
                               int ht_mode)
index 7803aa00491ee97ff0ccfdfd42cb1eb3e05369d1..c9cd0254a97975be8b0587072a65a66c3e22a969 100644 (file)
@@ -13,9 +13,8 @@
  * GNU General Public License for more details.
  */
 
-#include "mt76x0.h"
-#include "../mt76x02_util.h"
 #include <linux/etherdevice.h>
+#include "mt76x0.h"
 
 int mt76x0_config(struct ieee80211_hw *hw, u32 changed)
 {
index 237407200908ca3b4275c7704063a43dfb16c87d..1bff2be45a13d9ea8af54b97f96dcbbe8a256482 100644 (file)
 #include <net/mac80211.h>
 #include <linux/debugfs.h>
 
-#include "../mt76.h"
-#include "../mt76x02_regs.h"
-#include "../mt76x02_mac.h"
-#include "../mt76x02_util.h"
+#include "../mt76x02.h"
 #include "eeprom.h"
 
 #define MT_CALIBRATE_INTERVAL          (4 * HZ)
index 80c6b1ca9065be0c877047371b3e02dfde02d2b9..55c62e40499b83d199f2ed7af30d17be1a78d360 100644 (file)
@@ -20,8 +20,6 @@
 
 #include "mt76x0.h"
 #include "mcu.h"
-#include "../mt76x02_dma.h"
-#include "../mt76x02_util.h"
 
 static int mt76x0e_start(struct ieee80211_hw *hw)
 {
index 1a9450e6703fa2aa995e33230757c3e5ad37f5ea..e29fc3af49cf5a91d2c1aa2fafbe242fb04bab50 100644 (file)
@@ -18,7 +18,6 @@
 #include "mt76x0.h"
 #include "mcu.h"
 #include "trace.h"
-#include "../mt76x02_util.h"
 #include "../mt76x02_usb.h"
 
 static struct usb_device_id mt76x0_device_table[] = {
similarity index 98%
rename from drivers/net/wireless/mediatek/mt76/mt76x02_util.h
rename to drivers/net/wireless/mediatek/mt76/mt76x02.h
index f492e796613dd1366e5763bed2a7227c9fa9cd5a..fe68cf33aef47ec0d2826db157542b6e85638f6b 100644 (file)
 
 #include <linux/kfifo.h>
 
+#include "mt76.h"
+#include "mt76x02_regs.h"
 #include "mt76x02_mac.h"
 #include "mt76x02_dfs.h"
+#include "mt76x02_dma.h"
 
 struct mt76x02_mac_stats {
        u64 rx_stat[6];
index a743f1c5fa558749aa02f04969d80bf222f9f270..07b3217ecb510f1202c0c25b807f32731bbb308c 100644 (file)
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "mt76.h"
-#include "mt76x02_regs.h"
-#include "mt76x02_mac.h"
-#include "mt76x02_util.h"
+#include "mt76x02.h"
 
 enum mt76x02_cipher_type
 mt76x02_mac_get_key_info(struct ieee80211_key_conf *key, u8 *key_data)
index 1146fbfd8df52f9d3427ca1d7985a43d0dba1e80..af95b6708eafc9767860ec83c72c72ecfd0e8148 100644 (file)
 
 #include <linux/kernel.h>
 
-#include "mt76.h"
-#include "mt76x02_dma.h"
-#include "mt76x02_util.h"
-#include "mt76x02_mac.h"
+#include "mt76x02.h"
 
 static int
 mt76x02_init_tx_queue(struct mt76_dev *dev, struct mt76_queue *q,
index caa9bb107e68b59ee826e602f60675d9c12f964d..24298b7ddd7dd8e8310a7a140575572eefa65808 100644 (file)
 
 #include <linux/kernel.h>
 
-#include "mt76.h"
-#include "mt76x02_regs.h"
-#include "mt76x02_dma.h"
-#include "mt76x02_util.h"
+#include "mt76x02.h"
 
 void mt76x02_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
                struct sk_buff *skb)
index dea944b435767f0b1def17432b00b5dad1d1708d..a0cd77ddaef31cd7704bf3f483d3e56fabe296aa 100644 (file)
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#include "mt76.h"
-#include "mt76x02_dma.h"
-#include "mt76x02_mac.h"
-#include "mt76x02_util.h"
+#include "mt76x02.h"
 
 static int mt76x02u_check_skb_rooms(struct sk_buff *skb)
 {
index 6e123ae3bbe890afa90d105ecf9626b7089c8508..5851ab6b7e269327c0e11aece576b6b8a6366c04 100644 (file)
  */
 
 #include <linux/module.h>
-#include "mt76.h"
-#include "mt76x02_regs.h"
-#include "mt76x02_mac.h"
-#include "mt76x02_util.h"
+#include "mt76x02.h"
 
 #define CCK_RATE(_idx, _rate) {                                        \
        .bitrate = _rate,                                       \
index 9ebb219d63ae8f5260939896a33c8feafd81dc7b..e25905c91ee208f459251ed4ea0194c18c50fe1d 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #include "mt76x2.h"
-#include "../mt76x02_util.h"
 
 void mt76x2_mac_stop(struct mt76x02_dev *dev, bool force)
 {
index f1077f96a8a476b7196d9d80eb2583b5bcaf8d73..6bd04b74e15a1393d96b6aab41a499f55e199b95 100644 (file)
@@ -17,8 +17,7 @@
 #ifndef __MT76x2_MAC_H
 #define __MT76x2_MAC_H
 
-#include "../mt76.h"
-#include "../mt76x02_mac.h"
+#include "mt76x2.h"
 
 struct mt76x02_dev;
 struct mt76x2_sta;
index 7d944f50956a82fa8d1153b98831b4a29ea7ef2e..134037a227d7b84be612569b10397e1cf75b1cbd 100644 (file)
@@ -22,7 +22,6 @@
 #include "mt76x2.h"
 #include "mcu.h"
 #include "eeprom.h"
-#include "../mt76x02_dma.h"
 
 int mt76x2_mcu_set_channel(struct mt76x02_dev *dev, u8 channel, u8 bw,
                           u8 bw_index, bool scan)
index c7d5e666cc65d1801d095a66badaac5592bc7158..62a21156305691cea89b8ff87e9c56a29798a59a 100644 (file)
@@ -36,9 +36,7 @@
 
 #define MT_CALIBRATE_INTERVAL  HZ
 
-#include "../mt76.h"
-#include "../mt76x02_regs.h"
-#include "../mt76x02_util.h"
+#include "../mt76x02.h"
 #include "mac.h"
 #include "dfs.h"
 
index b3270b0b093013b301709ee9c959a0fffea660d6..6e932b5010efde6fca0bad058e80c06f43ac78bf 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "mt76x2.h"
 #include "mcu.h"
-#include "../mt76x02_dma.h"
 
 #define MT7612U_EEPROM_SIZE            512
 
index 6da12fca668cc138e354873b6d475ad9cc9ca4a2..1738e025a57ed633de4b5f974d6cca2dfdda3520 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/delay.h>
 #include "mt76x2.h"
 #include "trace.h"
-#include "../mt76x02_util.h"
 
 void mt76x2_rx_poll_complete(struct mt76_dev *mdev, enum mt76_rxq_id q)
 {
index b36286bc8b690c5a9ec19611c181893960199dd8..c0a3485e96f6568df369ebfebb4bc3514888fad6 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include "mt76x2.h"
-#include "../mt76x02_util.h"
 
 #define RADAR_SPEC(m, len, el, eh, wl, wh,             \
                   w_tolerance, tl, th, t_tolerance,    \
index 35f0ceb7094b032c02661ae682ab539557a47830..2859812ac47a94e64e2182c1f529fb9d9dbbcbb4 100644 (file)
@@ -15,8 +15,6 @@
  */
 
 #include "mt76x2.h"
-#include "../mt76x02_dma.h"
-#include "../mt76x02_util.h"
 
 void mt76x2_tx_tasklet(unsigned long data)
 {
index c8077d4a62aa22949495fabfd90e521d87070ad1..5f6e31f4a69adb1702f1efbf49d2ef6f4bb4a6e0 100644 (file)
@@ -18,8 +18,6 @@
 #include "mt76x2.h"
 #include "eeprom.h"
 #include "mcu.h"
-#include "../mt76x02_util.h"
-#include "../mt76x02_dma.h"
 
 static void
 mt76x2_mac_pbf_init(struct mt76x02_dev *dev)
index 4538afc7e50e57fcbd358cec4c16dd480d35367d..981633cbd527dc20e7d4e619a5e0e90213e5b73b 100644 (file)
@@ -19,7 +19,6 @@
 #include "mcu.h"
 #include "eeprom.h"
 #include "trace.h"
-#include "../mt76x02_util.h"
 
 void mt76x2_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr)
 {
index 9f42372acd81ed465a5312d9ed1e407e4d812c7e..8773ed4af51d2c466ffb57b5e4a04adfff282900 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include "mt76x2.h"
-#include "../mt76x02_util.h"
 
 static int
 mt76x2_start(struct ieee80211_hw *hw)
index a17c9a5279adeb8f64b413c0086eedbfba4c1be5..898aa229671cd8210784dd3dc6225e9282be8714 100644 (file)
@@ -21,7 +21,6 @@
 #include "mt76x2.h"
 #include "mcu.h"
 #include "eeprom.h"
-#include "../mt76x02_dma.h"
 
 static int
 mt76pci_load_rom_patch(struct mt76x02_dev *dev)
index ab9cb632222cded6586c1dd742be5b306a106485..cfc9d3d207df737f307b1b78bf228a0fa8c601a5 100644 (file)
@@ -15,8 +15,6 @@
  */
 
 #include "mt76x2.h"
-#include "../mt76x02_util.h"
-#include "../mt76x02_dma.h"
 
 struct beacon_bc_data {
        struct mt76x02_dev *dev;
index 6d12b67cce117b38cacf07926b03e7fc327edc15..45d628af7d57a1a291211c1bebd2a05158328a29 100644 (file)
@@ -17,9 +17,8 @@
 #include <linux/delay.h>
 
 #include "mt76x2u.h"
-#include "../mt76x02_util.h"
-#include "../mt76x02_phy.h"
 #include "eeprom.h"
+#include "../mt76x02_phy.h"
 #include "../mt76x02_usb.h"
 
 static void mt76x2u_init_dma(struct mt76x02_dev *dev)
index 6c7699278582d58aae2fdee0a50f2b1ac0467760..224609d6915fed9c2a388a12af5d436b737aa770 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include "mt76x2u.h"
-#include "../mt76x02_util.h"
 
 static int mt76x2u_start(struct ieee80211_hw *hw)
 {