gpiolib: fix coding style in gpiod_hog()
PATCH 1/1 gpiolib: fix coding style in gpiod_hog()
From: Bartosz Golaszewski <[email protected]>
There should be spaces between logical operators and their operands.
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpiolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpio/gpiolib.c +3 -3
@@ -4694,9 +4694,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 ; }
Signature · 1 line
2.23.0
Quoted 5 lines · Bartosz Golaszewski
From: Bartosz Golaszewski <[email protected]>
There should be spaces between logical operators and their operands.
Signed-off-by Bartosz Golaszewski <[email protected]>
Patch applied.
Yours,
Linus Walleij