mt76: mt7603: fix some checkpatch warnings

This fixes the following checkpatch warnings:

WARNING: Improper SPDX comment style
CHECK: No space is necessary after a cast

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Ryder Lee 2019-07-24 16:58:16 +08:00 committed by Felix Fietkau
parent 06413abe55
commit 7f17b86a04
11 changed files with 19 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include "mt7603.h"

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include "mt7603.h"

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include "mt7603.h"

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include "mt7603.h"
#include "mac.h"
@ -63,7 +63,7 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
txd[0] = cpu_to_le32(val);
sta = container_of(priv, struct ieee80211_sta, drv_priv);
hdr = (struct ieee80211_hdr *) &skb->data[MT_TXD_SIZE];
hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE];
tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TID_MASK;
ieee80211_sta_set_buffered(sta, tid, true);
@ -181,7 +181,8 @@ int mt7603_dma_init(struct mt7603_dev *dev)
init_waitqueue_head(&dev->mt76.mmio.mcu.wait);
skb_queue_head_init(&dev->mt76.mmio.mcu.res_q);
tasklet_init(&dev->mt76.tx_tasklet, mt7603_tx_tasklet, (unsigned long)dev);
tasklet_init(&dev->mt76.tx_tasklet, mt7603_tx_tasklet,
(unsigned long)dev);
mt76_clear(dev, MT_WPDMA_GLO_CFG,
MT_WPDMA_GLO_CFG_TX_DMA_EN |

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include "mt7603.h"
#include "eeprom.h"

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/etherdevice.h>
#include "mt7603.h"
@ -506,7 +506,6 @@ mt7603_init_txpower(struct mt7603_dev *dev,
}
}
int mt7603_register_device(struct mt7603_dev *dev)
{
struct mt76_bus_ops *bus_ops;

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/etherdevice.h>
#include <linux/timekeeping.h>
@ -644,7 +644,6 @@ void mt7603_wtbl_set_rates(struct mt7603_dev *dev, struct mt7603_sta *sta,
rates[i].idx--;
}
}
w9 &= MT_WTBL2_W9_SHORT_GI_20 | MT_WTBL2_W9_SHORT_GI_40 |
@ -1017,8 +1016,9 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta,
sta->rate_probe = false;
}
spin_unlock_bh(&dev->mt76.lock);
} else
} else {
info->status.rates[0] = rs->rates[first_idx / 2];
}
info->status.rates[0].count = 0;
for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) {

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/etherdevice.h>
#include <linux/platform_device.h>
@ -399,7 +399,7 @@ mt7603_ps_set_more_data(struct sk_buff *skb)
{
struct ieee80211_hdr *hdr;
hdr = (struct ieee80211_hdr *) &skb->data[MT_TXD_SIZE];
hdr = (struct ieee80211_hdr *)&skb->data[MT_TXD_SIZE];
hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA);
}
@ -647,7 +647,8 @@ mt7603_set_coverage_class(struct ieee80211_hw *hw, s16 coverage_class)
mt7603_mac_set_timing(dev);
}
static void mt7603_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
static void mt7603_tx(struct ieee80211_hw *hw,
struct ieee80211_tx_control *control,
struct sk_buff *skb)
{
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/firmware.h>
#include "mt7603.h"

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/kernel.h>
#include <linux/module.h>

View File

@ -1,4 +1,4 @@
/* SPDX-License-Identifier: ISC */
// SPDX-License-Identifier: ISC
#include <linux/kernel.h>
#include <linux/module.h>