Skip to contentSkip to conversation

staging: wilc1000: Rearrange code

PATCH Superseded Tamara Diaconita 1 participant 1 message Mar 10, 2017 Staging

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 staging: wilc1000: Rearrange code

Trims line size at 80 characters by splitting the lines to improve code readability.

Problem found with checkpatch.pl.

---
 drivers/staging/wilc1000/wilc_spi.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
drivers/staging/wilc1000/wilc_spi.c +9 -6
index a1b0296..298a30d 100644
@@ -397,11 +397,12 @@ static int spi_cmd_complete(struct wilc *wilc, u8 cmd, u32 adr, u8 *b, u32 sz,
 		len2 = len + (NUM_SKIP_BYTES + NUM_RSP_BYTES + NUM_DUMMY_BYTES);
 	} else if ((cmd == CMD_INTERNAL_READ) || (cmd == CMD_SINGLE_READ)) {
 		if (!g_spi.crc_off) {
-			len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES + NUM_DATA_BYTES
-				      + NUM_CRC_BYTES + NUM_DUMMY_BYTES);
+			len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES +
+				      NUM_DATA_BYTES + NUM_CRC_BYTES +
+				      NUM_DUMMY_BYTES);
 		} else {
-			len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES + NUM_DATA_BYTES
-				      + NUM_DUMMY_BYTES);
+			len2 = len + (NUM_RSP_BYTES + NUM_DATA_HDR_BYTES +
+				      NUM_DATA_BYTES + NUM_DUMMY_BYTES);
 		}
 	} else {
 		len2 = len + (NUM_RSP_BYTES + NUM_DUMMY_BYTES);
@@ -967,7 +968,8 @@ static int wilc_spi_read_int(struct wilc *wilc, u32 *int_status)
 			if (g_spi.nint > 5) {
 				wilc_spi_read_reg(wilc, 0x1a94,
 						  &irq_flags);
-				tmp |= (((irq_flags >> 0) & 0x7) << (IRG_FLAGS_OFFSET + 5));
+				tmp |= (((irq_flags >> 0) & 0x7) <<
+					  (IRG_FLAGS_OFFSET + 5));
 			}
 
 			unknown_mask = ~((1ul << g_spi.nint) - 1);
@@ -1007,7 +1009,8 @@ static int wilc_spi_clear_int_ext(struct wilc *wilc, u32 val)
 				 * it will clear interrupt.
 				 */
 				if (flags & 1)
-					ret = wilc_spi_write_reg(wilc, 0x10c8 + i * 4, 1);
+					ret = wilc_spi_write_reg(wilc, 0x10c8 +
+								 i * 4, 1);
 				if (!ret)
 					break;
 				flags >>= 1;
Signature · 1 line
2.9.3