]> www.infradead.org Git - linux.git/commitdiff
staging: vt6655: Fix alignment to open parentheses
authorDominik Karol PiÄ…tkowski <dominik.karol.piatkowski@protonmail.com>
Sat, 17 Aug 2024 10:07:26 +0000 (10:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Aug 2024 07:46:46 +0000 (15:46 +0800)
This patch fixes the "Alignment should match open parenthesis" checks
detected by checkpatch.pl.

Signed-off-by: Dominik Karol PiÄ…tkowski <dominik.karol.piatkowski@protonmail.com>
Link: https://lore.kernel.org/r/20240817100559.33174-1-dominik.karol.piatkowski@protonmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/card.h
drivers/staging/vt6655/device_main.c
drivers/staging/vt6655/rxtx.c

index f52e42564e81afd236e53534fd557250bd439b10..f6b462ebca51cd885e0d528a0d4901aa436d8025 100644 (file)
@@ -55,8 +55,8 @@ void CARDvSafeResetRx(struct vnt_private *priv);
 void card_radio_power_off(struct vnt_private *priv);
 bool card_set_phy_parameter(struct vnt_private *priv, u8 bb_type);
 bool card_update_tsf(struct vnt_private *priv, unsigned char rx_rate,
-                   u64 bss_timestamp);
+                    u64 bss_timestamp);
 bool card_set_beacon_period(struct vnt_private *priv,
-                         unsigned short beacon_interval);
+                           unsigned short beacon_interval);
 
 #endif /* __CARD_H__ */
index 3ff8103366c142518eee0345cc5b89bb689beaa5..9ea647aefd60da8d55dab5de05088e0f5e150b43 100644 (file)
@@ -1140,7 +1140,7 @@ static void vnt_interrupt_process(struct vnt_private *priv)
                                PSbIsNextTBTTWakeUp((void *)priv);
 
                        if ((priv->op_mode == NL80211_IFTYPE_AP ||
-                           priv->op_mode == NL80211_IFTYPE_ADHOC) &&
+                            priv->op_mode == NL80211_IFTYPE_ADHOC) &&
                            priv->vif->bss_conf.enable_beacon)
                                MACvOneShotTimer1MicroSec(priv,
                                                          (priv->vif->bss_conf.beacon_int -
@@ -1535,7 +1535,7 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
            priv->op_mode != NL80211_IFTYPE_AP) {
                if (vif->cfg.assoc && conf->beacon_rate) {
                        card_update_tsf(priv, conf->beacon_rate->hw_value,
-                                      conf->sync_tsf);
+                                       conf->sync_tsf);
 
                        card_set_beacon_period(priv, conf->beacon_int);
 
@@ -1763,7 +1763,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
        priv->memaddr = pci_resource_start(pcid, 0);
        priv->ioaddr = pci_resource_start(pcid, 1);
        priv->port_offset = ioremap(priv->memaddr & PCI_BASE_ADDRESS_MEM_MASK,
-                                  256);
+                                   256);
        if (!priv->port_offset) {
                dev_err(&pcid->dev, ": Failed to IO remapping ..\n");
                device_free_info(priv);
index 5e5ed582c35e3918d3e066ff7676e7424cf63416..3705cb1e87b635553e18be672c9b35144bcfef64 100644 (file)
@@ -493,9 +493,9 @@ s_uFillDataHead(
                buf->duration_a = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType,
                                                                      wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
                buf->duration_b = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, PK_TYPE_11B,
-                                                                      pDevice->byTopCCKBasicRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
+                                                                     pDevice->byTopCCKBasicRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
                buf->duration_a_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byPktType,
-                                                                         wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
+                                                                        wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
                buf->duration_a_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byPktType,
                                                                         wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
 
@@ -520,7 +520,7 @@ s_uFillDataHead(
                        buf->duration_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byPktType,
                                                                               wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
                        buf->duration_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byPktType,
-                                                                               wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
+                                                                              wCurrentRate, bNeedAck, uFragIdx, cbLastFragmentSize, uMACfragNum, byFBOption));
                        buf->time_stamp_off = vnt_time_stamp_off(pDevice, wCurrentRate);
                        return buf->duration;
                }
@@ -1375,8 +1375,8 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
                /* Get Duration and TimeStampOff */
                short_head->duration =
                        cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B,
-                                   frame_size, PK_TYPE_11A, current_rate,
-                                   false, 0, 0, 1, AUTO_FB_NONE));
+                                                           frame_size, PK_TYPE_11A, current_rate,
+                                                           false, 0, 0, 1, AUTO_FB_NONE));
 
                short_head->time_stamp_off =
                                vnt_time_stamp_off(priv, current_rate);
@@ -1391,8 +1391,8 @@ static int vnt_beacon_xmit(struct vnt_private *priv,
                /* Get Duration and TimeStampOff */
                short_head->duration =
                        cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B,
-                                   frame_size, PK_TYPE_11B, current_rate,
-                                   false, 0, 0, 1, AUTO_FB_NONE));
+                                                           frame_size, PK_TYPE_11B, current_rate,
+                                                           false, 0, 0, 1, AUTO_FB_NONE));
 
                short_head->time_stamp_off =
                        vnt_time_stamp_off(priv, current_rate);