From: Joseph-Eugene Winzer <m999@openmailbox.org>
To: m999@openmailbox.org, gregkh@linuxfoundation.org
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/5] drivers: staging: rtl8192u: fixed coding style issues in r8192U_core.c
Date: Fri, 17 Jul 2015 15:59:20 +0200 [thread overview]
Message-ID: <1437141560-22517-5-git-send-email-m999@openmailbox.org> (raw)
In-Reply-To: <1437141560-22517-1-git-send-email-m999@openmailbox.org>
Fixed a few lines that were longer than 80 chars.
Signed-off-by: Joseph-Eugene Winzer <m999@openmailbox.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
next prev parent reply other threads:[~2015-07-17 14:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 13:59 [PATCH 1/5] drivers: staging: rtl8192u: fixing " Joseph-Eugene Winzer
2015-07-17 13:59 ` [PATCH 2/5] " Joseph-Eugene Winzer
2015-07-18 0:11 ` Joe Perches
2015-07-18 12:29 ` m999
2015-07-19 10:48 ` Dan Carpenter
2015-07-17 13:59 ` [PATCH 3/5] drivers: staging: rtl8192u: removed pointer check for kfree " Joseph-Eugene Winzer
2015-07-17 13:59 ` [PATCH 4/5] drivers: staging: rtl8192u: included linux/uaccess.h instead of asm/uaccess.h Joseph-Eugene Winzer
2015-07-17 13:59 ` Joseph-Eugene Winzer [this message]
2015-07-18 0:15 ` [PATCH 5/5] drivers: staging: rtl8192u: fixed coding style issues in r8192U_core.c Joe Perches
2015-07-23 4:02 ` [PATCH 1/5] drivers: staging: rtl8192u: fixing " Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437141560-22517-5-git-send-email-m999@openmailbox.org \
--to=m999@openmailbox.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®