gpiolib: fix coding style in gpiod_hog()
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>
This commit is contained in:
parent
1bcab70b78
commit
b27f300f8c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue