Skip to content

Commit

Permalink
add a mt76x2_ prefix to all files
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
Felix Fietkau committed Dec 6, 2015
1 parent 31c11fd commit a0ee207
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 46 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
EXTRA_CFLAGS += -Werror

obj-m := mt76pci.o
obj-m := mt76x2e.o

mt76pci-y := \
pci.o dma.o \
main.o init.o debugfs.o tx.o util.o \
core.o mac.o eeprom.o mcu.o phy.o \
trace.o
mt76x2e-y := \
mt76x2_pci.o mt76x2_dma.o \
mt76x2_main.o mt76x2_init.o mt76x2_debugfs.o mt76x2_tx.o mt76x2_util.o \
mt76x2_core.o mt76x2_mac.o mt76x2_eeprom.o mt76x2_mcu.o mt76x2_phy.o \
mt76x2_trace.o

mt76pci-$(CONFIG_OF) += of.o
mt76x2e-$(CONFIG_OF) += mt76x2_of.o
6 changes: 3 additions & 3 deletions mt76.h → mt76x2.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@

#define MT_CALIBRATE_INTERVAL HZ

#include "regs.h"
#include "util.h"
#include "mac.h"
#include "mt76x2_regs.h"
#include "mt76x2_util.h"
#include "mt76x2_mac.h"

struct mt76x2_queue_entry {
struct sk_buff *skb;
Expand Down
4 changes: 2 additions & 2 deletions core.c → mt76x2_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

#include <linux/delay.h>
#include "mt76.h"
#include "trace.h"
#include "mt76x2.h"
#include "mt76x2_trace.h"

bool mt76x2_poll(struct mt76x2_dev *dev, u32 offset, u32 mask, u32 val,
int timeout)
Expand Down
2 changes: 1 addition & 1 deletion debugfs.c → mt76x2_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

#include <linux/debugfs.h>
#include "mt76.h"
#include "mt76x2.h"

static int
mt76x2_reg_set(void *data, u64 val)
Expand Down
4 changes: 2 additions & 2 deletions dma.c → mt76x2_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* GNU General Public License for more details.
*/

#include "mt76.h"
#include "dma.h"
#include "mt76x2.h"
#include "mt76x2_dma.h"

struct mt76x2_txwi_cache {
struct mt76x2_txwi txwi;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions eeprom.c → mt76x2_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

#include <linux/etherdevice.h>
#include <asm/unaligned.h>
#include "mt76.h"
#include "eeprom.h"
#include "of.h"
#include "mt76x2.h"
#include "mt76x2_eeprom.h"
#include "mt76x2_of.h"

#define EE_FIELD(_name, _value) [MT_EE_##_name] = (_value) | 1

Expand Down
2 changes: 1 addition & 1 deletion eeprom.h → mt76x2_eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __MT76_EEPROM_H
#define __MT76_EEPROM_H

#include "mt76.h"
#include "mt76x2.h"

enum mt76x2_eeprom_field {
MT_EE_CHIP_ID = 0x000,
Expand Down
6 changes: 3 additions & 3 deletions init.c → mt76x2_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*/

#include <linux/delay.h>
#include "mt76.h"
#include "eeprom.h"
#include "mcu.h"
#include "mt76x2.h"
#include "mt76x2_eeprom.h"
#include "mt76x2_mcu.h"

static bool
mt76x2_wait_for_mac(struct mt76x2_dev *dev)
Expand Down
8 changes: 4 additions & 4 deletions mac.c → mt76x2_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
*/

#include <linux/delay.h>
#include "mt76.h"
#include "mcu.h"
#include "eeprom.h"
#include "trace.h"
#include "mt76x2.h"
#include "mt76x2_mcu.h"
#include "mt76x2_eeprom.h"
#include "mt76x2_trace.h"

void mt76x2_mac_set_bssid(struct mt76x2_dev *dev, u8 idx, const u8 *addr)
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion main.c → mt76x2_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/

#include "mt76.h"
#include "mt76x2.h"

static int
mt76x2_start(struct ieee80211_hw *hw)
Expand Down
8 changes: 4 additions & 4 deletions mcu.c → mt76x2_mcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#include <linux/firmware.h>
#include <linux/delay.h>

#include "mt76.h"
#include "mcu.h"
#include "dma.h"
#include "eeprom.h"
#include "mt76x2.h"
#include "mt76x2_mcu.h"
#include "mt76x2_dma.h"
#include "mt76x2_eeprom.h"

struct mt76x2_fw_header {
__le32 ilm_len;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions of.c → mt76x2_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <linux/of.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include "mt76.h"
#include "eeprom.h"
#include "of.h"
#include "mt76x2.h"
#include "mt76x2_eeprom.h"
#include "mt76x2_of.h"

static int mt76x2_check_eeprom(struct mt76x2_dev *dev, const char *type)
{
Expand Down
2 changes: 1 addition & 1 deletion of.h → mt76x2_of.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#ifndef __MT76_OF_H
#define __MT76_OF_H

#include "mt76.h"
#include "mt76x2.h"

#ifdef CONFIG_OF

Expand Down
4 changes: 2 additions & 2 deletions pci.c → mt76x2_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <linux/module.h>
#include <linux/pci.h>

#include "mt76.h"
#include "trace.h"
#include "mt76x2.h"
#include "mt76x2_trace.h"

static const struct pci_device_id mt76pci_device_table[] = {
{ PCI_DEVICE(0x14c3, 0x7662) },
Expand Down
6 changes: 3 additions & 3 deletions phy.c → mt76x2_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
*/

#include <linux/delay.h>
#include "mt76.h"
#include "mcu.h"
#include "eeprom.h"
#include "mt76x2.h"
#include "mt76x2_mcu.h"
#include "mt76x2_eeprom.h"

static bool
mt76x2_phy_rf_op(struct mt76x2_dev *dev, bool idx, u16 offset, bool write)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion trace.c → mt76x2_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

#ifndef __CHECKER__
#define CREATE_TRACE_POINTS
#include "trace.h"
#include "mt76x2_trace.h"

#endif
6 changes: 3 additions & 3 deletions trace.h → mt76x2_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#define __MT76_TRACE_H

#include <linux/tracepoint.h>
#include "mt76.h"
#include "mt76x2.h"

#undef TRACE_SYSTEM
#define TRACE_SYSTEM mt76
#define TRACE_SYSTEM mt76x2

#define MAXNAME 32
#define DEV_ENTRY __array(char, wiphy_name, 32)
Expand Down Expand Up @@ -168,6 +168,6 @@ TRACE_EVENT(dev_irq,
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace
#define TRACE_INCLUDE_FILE mt76x2_trace

#include <trace/define_trace.h>
2 changes: 1 addition & 1 deletion tx.c → mt76x2_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/

#include "mt76.h"
#include "mt76x2.h"

struct beacon_bc_data {
struct mt76x2_dev *dev;
Expand Down
2 changes: 1 addition & 1 deletion util.c → mt76x2_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* GNU General Public License for more details.
*/

#include "mt76.h"
#include "mt76x2.h"

void mt76x2_remove_hdr_pad(struct sk_buff *skb)
{
Expand Down
File renamed without changes.

0 comments on commit a0ee207

Please sign in to comment.