tests: line: coding style fix
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 19 Oct 2017 07:33:24 +0000 (09:33 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 19 Oct 2017 07:34:08 +0000 (09:34 +0200)
Put local variables in correct order - from longest to shortest lines.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/tests-line.c

index c3b54881ed8cbb700a44b920c477a881e2ade8b2..86ebc9613ac403d1898cd02e3f0aec1e68d8945a 100644 (file)
@@ -122,6 +122,8 @@ static void line_request_bulk_output(void)
 {
        TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipA = NULL;
        TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipB = NULL;
+       struct gpiod_line_bulk bulkB = GPIOD_LINE_BULK_INITIALIZER;
+       struct gpiod_line_bulk bulkA;
        struct gpiod_line *lineA0;
        struct gpiod_line *lineA1;
        struct gpiod_line *lineA2;
@@ -130,10 +132,8 @@ static void line_request_bulk_output(void)
        struct gpiod_line *lineB1;
        struct gpiod_line *lineB2;
        struct gpiod_line *lineB3;
-       struct gpiod_line_bulk bulkA;
-       struct gpiod_line_bulk bulkB = GPIOD_LINE_BULK_INITIALIZER;
-       int status;
        int valA[4], valB[4];
+       int status;
 
        chipA = gpiod_chip_open(test_chip_path(0));
        chipB = gpiod_chip_open(test_chip_path(1));
@@ -212,11 +212,11 @@ static void line_request_bulk_different_chips(void)
        TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipA = NULL;
        TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipB = NULL;
        struct gpiod_line_request_config req;
+       struct gpiod_line_bulk bulk;
        struct gpiod_line *lineA0;
        struct gpiod_line *lineA1;
        struct gpiod_line *lineB0;
        struct gpiod_line *lineB1;
-       struct gpiod_line_bulk bulk;
        int status;
 
        chipA = gpiod_chip_open(test_chip_path(0));