[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1437141560-22517-5-git-send-email-m999@openmailbox.org>
Date: Fri, 17 Jul 2015 15:59:20 +0200
From: Joseph-Eugene Winzer <m999@...nmailbox.org>
To: m999@...nmailbox.org, gregkh@...uxfoundation.org
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH 5/5] drivers: staging: rtl8192u: fixed coding style issues in r8192U_core.c
Fixed a few lines that were longer than 80 chars.
Signed-off-by: Joseph-Eugene Winzer <m999@...nmailbox.org>
---
drivers/staging/rtl8192u/r8192U_core.c | 61 +++++++++++++++++++++++-----------
1 file changed, 41 insertions(+), 20 deletions(-)
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index 134a6ed..9bf6248 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -212,7 +212,9 @@ static void rtl819x_set_channel_map(u8 channel_plan, struct r8192_priv *priv)
ChannelPlan[channel_plan].Channel[i] >
max_chan)
break;
- GET_DOT11D_INFO(ieee)->channel_map[ChannelPlan[channel_plan].Channel[i]] = 1;
+ GET_DOT11D_INFO(ieee)->
+ channel_map[ChannelPlan[channel_plan].
+ Channel[i]] = 1;
}
}
break;
@@ -1092,7 +1094,8 @@ static void rtl8192_tx_isr(struct urb *tx_urb)
/* Don't send data frame during scanning.*/
if ((skb_queue_len(&priv->ieee80211->skb_waitQ[queue_index]) !=
0) && (!(priv->ieee80211->queue_stop))) {
- skb = skb_dequeue(&(priv->ieee80211->skb_waitQ[queue_index]));
+ skb = skb_dequeue(&(priv->ieee80211->
+ skb_waitQ[queue_index]));
if (skb)
priv->ieee80211->softmac_hard_start_xmit(skb,
dev);
@@ -1712,7 +1715,10 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff *skb)
status = usb_submit_urb(tx_urb_zero, GFP_ATOMIC);
if (status) {
RT_TRACE(COMP_ERR,
- "Error TX URB for zero byte %d, error %d", atomic_read(&priv->tx_pending[tcb_desc->queue_index]), status);
+ "Error TX URB for zero byte %d, error %d",
+ atomic_read(&priv->tx_pending[tcb_desc->
+ queue_index]),
+ status);
return -1;
}
}
@@ -1893,7 +1899,9 @@ static void rtl8192_update_beacon(struct work_struct *work)
/*
* background support to run QoS activate functionality
*/
-static int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK, EDCAPARA_VI, EDCAPARA_VO};
+static int WDCAPARA_ADD[] = {EDCAPARA_BE, EDCAPARA_BK,
+ EDCAPARA_VI, EDCAPARA_VO};
+
static void rtl8192_qos_activate(struct work_struct *work)
{
struct r8192_priv *priv =
@@ -2627,27 +2635,34 @@ static void rtl8192_read_eeprom_info(struct net_device *dev)
if (priv->EEPROM_Def_Ver == 0) {
if (i <= 3)
priv->TxPowerLevelCCK[i] =
- priv->EEPROMTxPowerLevelOFDM24G[0] +
+ priv->
+ EEPROMTxPowerLevelOFDM24G[0] +
(priv->EEPROMTxPowerLevelCCK -
- priv->EEPROMTxPowerLevelOFDM24G[1]);
+ priv->
+ EEPROMTxPowerLevelOFDM24G[1]);
else if (i >= 4 && i <= 9)
priv->TxPowerLevelCCK[i] =
priv->EEPROMTxPowerLevelCCK;
else
priv->TxPowerLevelCCK[i] =
- priv->EEPROMTxPowerLevelOFDM24G[2] +
+ priv->
+ EEPROMTxPowerLevelOFDM24G[2] +
(priv->EEPROMTxPowerLevelCCK -
- priv->EEPROMTxPowerLevelOFDM24G[1]);
+ priv->
+ EEPROMTxPowerLevelOFDM24G[1]);
} else if (priv->EEPROM_Def_Ver == 1) {
if (i <= 3)
priv->TxPowerLevelCCK[i] =
- priv->EEPROMTxPowerLevelCCK_V1[0];
+ priv->
+ EEPROMTxPowerLevelCCK_V1[0];
else if (i >= 4 && i <= 9)
priv->TxPowerLevelCCK[i] =
- priv->EEPROMTxPowerLevelCCK_V1[1];
+ priv->
+ EEPROMTxPowerLevelCCK_V1[1];
else
priv->TxPowerLevelCCK[i] =
- priv->EEPROMTxPowerLevelCCK_V1[2];
+ priv->
+ EEPROMTxPowerLevelCCK_V1[2];
}
}
priv->TxPowerDiff = priv->EEPROMPwDiff;
@@ -3076,7 +3091,8 @@ static bool rtl8192_adapter_start(struct net_device *dev)
rOFDM0_XATxIQImbalance,
bMaskDWord);
for (i = 0; i < TxBBGainTableLength; i++) {
- if (tmpRegA == priv->txbbgain_table[i].txbbgain_value) {
+ if (tmpRegA == priv->txbbgain_table[i].
+ txbbgain_value) {
priv->rfa_txpowertrackingindex = (u8)i;
priv->rfa_txpowertrackingindex_real =
(u8)i;
@@ -3090,7 +3106,8 @@ static bool rtl8192_adapter_start(struct net_device *dev)
bMaskByte2);
for (i = 0; i < CCKTxBBGainTableLength; i++) {
- if (TempCCk == priv->cck_txbbgain_table[i].ccktxbb_valuearray[0]) {
+ if (TempCCk == priv->cck_txbbgain_table[i].
+ ccktxbb_valuearray[0]) {
priv->cck_present_attentuation_20Mdefault = (u8) i;
break;
}
@@ -4118,13 +4135,15 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
/* Fixed by Jacken 2008-03-20 */
if (priv->stats.rx_rssi_percentage[rfpath] == 0)
priv->stats.rx_rssi_percentage[rfpath] =
- pprevious_stats->RxMIMOSignalStrength[rfpath];
+ pprevious_stats->
+ RxMIMOSignalStrength[rfpath];
if (pprevious_stats->RxMIMOSignalStrength[rfpath] >
priv->stats.rx_rssi_percentage[rfpath]) {
priv->stats.rx_rssi_percentage[rfpath] =
((priv->stats.rx_rssi_percentage[rfpath] *
(Rx_Smooth_Factor - 1)) +
- (pprevious_stats->RxMIMOSignalStrength[rfpath])) /
+ (pprevious_stats->
+ RxMIMOSignalStrength[rfpath])) /
(Rx_Smooth_Factor);
priv->stats.rx_rssi_percentage[rfpath] =
priv->stats.rx_rssi_percentage[rfpath] +
@@ -4133,7 +4152,8 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
priv->stats.rx_rssi_percentage[rfpath] =
((priv->stats.rx_rssi_percentage[rfpath] *
(Rx_Smooth_Factor - 1)) +
- (pprevious_stats->RxMIMOSignalStrength[rfpath])) /
+ (pprevious_stats->
+ RxMIMOSignalStrength[rfpath])) /
(Rx_Smooth_Factor);
}
RT_TRACE(COMP_DBG,
@@ -4154,7 +4174,8 @@ static void rtl8192_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
PHY_Beacon_RSSI_SLID_WIN_MAX) {
slide_beacon_adc_pwdb_statistics =
PHY_Beacon_RSSI_SLID_WIN_MAX;
- last_beacon_adc_pwdb = priv->stats.Slide_Beacon_pwdb[slide_beacon_adc_pwdb_index];
+ last_beacon_adc_pwdb = priv->stats.
+ Slide_Beacon_pwdb[slide_beacon_adc_pwdb_index];
priv->stats.Slide_Beacon_Total -= last_beacon_adc_pwdb;
}
priv->stats.Slide_Beacon_Total += pprevious_stats->RxPWDBAll;
@@ -4939,10 +4960,10 @@ static void rtl8192_rx_nomal(struct sk_buff *skb)
}
static void rtl819xusb_process_received_packet(struct net_device *dev,
- struct ieee80211_rx_stats *pstats)
+ struct ieee80211_rx_stats *pstats)
{
- u8 *frame;
- u16 frame_len = 0;
+ u8 *frame;
+ u16 frame_len = 0;
struct r8192_priv *priv = ieee80211_priv(dev);
/* Get shifted bytes of Starting address of 802.11 header.
--
2.4.6
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists