gpiolib: fix coding style in gpiod_hog()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 13 Nov 2019 13:16:29 +0000 (14:16 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Nov 2019 22:07:39 +0000 (23:07 +0100)
There should be spaces between logical operators and their operands.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 8fdde92..21b02a0 100644 (file)
@@ -4894,9 +4894,9 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
 
        pr_info("GPIO line %d (%s) hogged as %s%s\n",
                desc_to_gpio(desc), name,
-               (dflags&GPIOD_FLAGS_BIT_DIR_OUT) ? "output" : "input",
-               (dflags&GPIOD_FLAGS_BIT_DIR_OUT) ?
-                 (dflags&GPIOD_FLAGS_BIT_DIR_VAL) ? "/high" : "/low":"");
+               (dflags & GPIOD_FLAGS_BIT_DIR_OUT) ? "output" : "input",
+               (dflags & GPIOD_FLAGS_BIT_DIR_OUT) ?
+                 (dflags & GPIOD_FLAGS_BIT_DIR_VAL) ? "/high" : "/low" : "");
 
        return 0;
 }