mt76x2: fix more checkpatch errors

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2016-09-05 10:08:16 +02:00
parent d7f5112c09
commit becce8bd46
5 changed files with 10 additions and 7 deletions
+5 -3
View File
@@ -204,6 +204,7 @@ mt76x2_apply_cal_free_data(struct mt76x2_dev *dev, u8 *efuse)
static int mt76x2_check_eeprom(struct mt76x2_dev *dev)
{
u16 val = get_unaligned_le16(dev->mt76.eeprom.data);
switch (val) {
case 0x7662:
case 0x7612:
@@ -256,7 +257,7 @@ out:
}
static inline int
mt76x2_sign_extend(u32 val, unsigned size)
mt76x2_sign_extend(u32 val, unsigned int size)
{
bool sign = val & BIT(size - 1);
@@ -266,7 +267,7 @@ mt76x2_sign_extend(u32 val, unsigned size)
}
static inline int
mt76x2_sign_extend_optional(u32 val, unsigned size)
mt76x2_sign_extend_optional(u32 val, unsigned int size)
{
bool enable = val & BIT(size);
@@ -554,7 +555,8 @@ mt76x2_get_power_info_5g(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t,
t->target_power = val & 0xff;
}
void mt76x2_get_power_info(struct mt76x2_dev *dev, struct mt76x2_tx_power_info *t)
void mt76x2_get_power_info(struct mt76x2_dev *dev,
struct mt76x2_tx_power_info *t)
{
u16 bw40, bw80;
+1 -1
View File
@@ -164,7 +164,7 @@ mt76x2_tssi_enabled(struct mt76x2_dev *dev)
{
return !mt76x2_temp_tx_alc_enabled(dev) &&
(mt76x2_eeprom_get(dev, MT_EE_NIC_CONF_1) &
MT_EE_NIC_CONF_1_TX_ALC_EN);
MT_EE_NIC_CONF_1_TX_ALC_EN);
}
static inline bool
+2 -1
View File
@@ -325,7 +325,8 @@ mt76x2_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate,
}
static void
mt76x2_mac_fill_tx_status(struct mt76x2_dev *dev, struct ieee80211_tx_info *info,
mt76x2_mac_fill_tx_status(struct mt76x2_dev *dev,
struct ieee80211_tx_info *info,
struct mt76x2_tx_status *st, int n_frames)
{
struct ieee80211_tx_rate *rate = info->status.rates;
+1 -1
View File
@@ -175,7 +175,7 @@ void mt76x2_mac_wcid_set_rate(struct mt76x2_dev *dev, struct mt76_wcid *wcid,
const struct ieee80211_tx_rate *rate);
int mt76x2_mac_shared_key_setup(struct mt76x2_dev *dev, u8 vif_idx, u8 key_idx,
struct ieee80211_key_conf *key);
struct ieee80211_key_conf *key);
int mt76x2_mac_set_beacon(struct mt76x2_dev *dev, u8 vif_idx,
struct sk_buff *skb);
+1 -1
View File
@@ -150,7 +150,7 @@ mt76pci_load_rom_patch(struct mt76x2_dev *dev)
if (!fw || !fw->data || fw->size <= sizeof(*hdr)) {
ret = -EIO;
printk("Failed to load firmware\n");
dev_err(dev->mt76.dev, "Failed to load firmware\n");
goto out;
}