Search Linux Wireless

Re: [PATCH] Add iwlwifi wireless drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lindent is only the first step.

You then have to go through the code and undo the damage it does.

For instance,

+               rc = wait_event_interruptible_timeout(priv->
+                                                     wait_command_queue,
+                                                     !(priv->
+                                                       status &
+                                                       STATUS_HCMD_ACTIVE),
+                                                     HOST_COMPLETE_TIMEOUT);

you SHOULD (using IETF RFC language) violate the 80-column limit, when the alternative is word-wrapping at silly boundaries like the middle of a de-ref.

Or,

+       iwl_write_restricted(priv, FH_RCSR_CONFIG(0),
+                            ALM_FH_RCSR_RX_CONFIG_REG_VAL_DMA_CHNL_EN_ENABLE
+                            |
+                            ALM_FH_RCSR_RX_CONFIG_REG_VAL_RDRBD_EN_ENABLE
+                            |
+                            ALM_FH_RCSR_RX_CONFIG_REG_BIT_WR_STTS_EN
+                            |
+                            ALM_FH_RCSR_RX_CONFIG_REG_VAL_MAX_FRAG_SIZE_128
+                            | (RX_QUEUE_SIZE_LOG <<
+                               ALM_FH_RCSR_RX_CONFIG_REG_POS_RBDC_SIZE)
+                            |
+                            ALM_FH_RCSR_RX_CONFIG_REG_VAL_IRQ_DEST_INT_HOST
+                            | (1 << ALM_FH_RCSR_RX_CONFIG_REG_POS_IRQ_RBTH)
+                            | ALM_FH_RCSR_RX_CONFIG_REG_VAL_MSG_MODE_FH);
+

you SHOULD NOT waste an entire line on a single '|'.

As an aside, remove the redundant "_REG_BIT_" and "_REG_VAL_" stuff. It makes too-long symbols even longer.

As an aside #2,

+#if IWL == 4965
+           (rxon1->ofdm_ht_single_stream_basic_rates ==
+            rxon2->ofdm_ht_single_stream_basic_rates) &&
+           (rxon1->ofdm_ht_dual_stream_basic_rates ==
+            rxon2->ofdm_ht_dual_stream_basic_rates) &&
+           (rxon1->rx_chain == rxon2->rx_chain) &&
+#endif


those #if's should go away.

	Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux