[PATCHv2 4/6] staging: pi433: pi433_if.c space required in for loop

Oliver Graute oliver.graute at gmail.com
Wed Dec 13 18:34:27 UTC 2017


This patch fixes this checkpatch.pl errors:

ERROR: that open brace { should be on the previous line
+       for (i=0; i<NUM_DIO; i++) +       {

ERROR: spaces required around that '=' (ctx:VxV)
+       for (i=0; i<NUM_DIO; i++)
              ^
ERROR: spaces required around that '<' (ctx:VxV)
+       for (i=0; i<NUM_DIO; i++)
                   ^

Signed-off-by: Oliver Graute <oliver.graute at gmail.com>
---
 drivers/staging/pi433/pi433_if.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index 55d284d..01fbcf6 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -1026,8 +1026,7 @@ static int setup_GPIOs(struct pi433_device *device)
 		DIO1_irq_handler
 	};
 
-	for (i=0; i<NUM_DIO; i++)
-	{
+	for (i = 0; i < NUM_DIO; i++) {
 		/* "construct" name and get the gpio descriptor */
 		snprintf(name, sizeof(name), "DIO%d", i);
 		device->gpiod[i] = gpiod_get(&device->spi->dev, name, 0 /*GPIOD_IN*/);
-- 
1.9.1



More information about the devel mailing list