Skip to content

Commit b27f300

Browse files
brgllinusw
authored andcommitted
gpiolib: fix coding style in gpiod_hog()
There should be spaces between logical operators and their operands. Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 1bcab70 commit b27f300

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpiolib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4894,9 +4894,9 @@ int gpiod_hog(struct gpio_desc *desc, const char *name,
48944894

48954895
pr_info("GPIO line %d (%s) hogged as %s%s\n",
48964896
desc_to_gpio(desc), name,
4897-
(dflags&GPIOD_FLAGS_BIT_DIR_OUT) ? "output" : "input",
4898-
(dflags&GPIOD_FLAGS_BIT_DIR_OUT) ?
4899-
(dflags&GPIOD_FLAGS_BIT_DIR_VAL) ? "/high" : "/low":"");
4897+
(dflags & GPIOD_FLAGS_BIT_DIR_OUT) ? "output" : "input",
4898+
(dflags & GPIOD_FLAGS_BIT_DIR_OUT) ?
4899+
(dflags & GPIOD_FLAGS_BIT_DIR_VAL) ? "/high" : "/low" : "");
49004900

49014901
return 0;
49024902
}

0 commit comments

Comments
 (0)