[PATCH 09/15] Staging: bcm: led_control.c: Refactored line lengths

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

 



Signed-off-by: Matthias Beyer <mail@xxxxxxxxxxxxxxxx>
---
 drivers/staging/bcm/led_control.c | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/drivers/staging/bcm/led_control.c b/drivers/staging/bcm/led_control.c
index 4cf4212..c0509ae 100644
--- a/drivers/staging/bcm/led_control.c
+++ b/drivers/staging/bcm/led_control.c
@@ -118,37 +118,29 @@ static INT blink_in_normal_bandwidth(struct bcm_mini_adapter *ad,
 		*num_of_time = *num_of_time_tx;
 	if (*num_of_time > 0) {
 		/* Blink both Tx and Rx LEDs */
-		if (LED_Blink(ad, 1 << GPIO_Num_tx,
-				uiTxLedIndex, *timeout,
-				*num_of_time, currdriverstate)
-					== EVENT_SIGNALED)
+		if (LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
+			      *num_of_time, currdriverstate) == EVENT_SIGNALED)
 			return EVENT_SIGNALED;
 
-		if (LED_Blink(ad, 1 << GPIO_Num_rx,
-				uiRxLedIndex, *timeout,
-				*num_of_time, currdriverstate)
-					== EVENT_SIGNALED)
+		if (LED_Blink(ad, 1 << GPIO_Num_rx, uiRxLedIndex, *timeout,
+			      *num_of_time, currdriverstate) == EVENT_SIGNALED)
 			return EVENT_SIGNALED;
 
 	}
 
 	if (*num_of_time == *num_of_time_tx) {
 		/* Blink pending rate of Rx */
-		if (LED_Blink(ad, (1 << GPIO_Num_rx),
-				uiRxLedIndex, *timeout,
-				*num_of_time_rx - *num_of_time,
-				currdriverstate)
-					== EVENT_SIGNALED)
+		if (LED_Blink(ad, (1 << GPIO_Num_rx), uiRxLedIndex, *timeout,
+			      *num_of_time_rx - *num_of_time,
+			      currdriverstate) == EVENT_SIGNALED)
 			return EVENT_SIGNALED;
 
 		*num_of_time = *num_of_time_rx;
 	} else {
 		/* Blink pending rate of Tx */
-		if (LED_Blink(ad, 1 << GPIO_Num_tx,
-				uiTxLedIndex, *timeout,
-				*num_of_time_tx - *num_of_time,
-				currdriverstate)
-					== EVENT_SIGNALED)
+		if (LED_Blink(ad, 1 << GPIO_Num_tx, uiTxLedIndex, *timeout,
+			      *num_of_time_tx - *num_of_time,
+			      currdriverstate) == EVENT_SIGNALED)
 			return EVENT_SIGNALED;
 
 		*num_of_time = *num_of_time_tx;
-- 
2.0.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux