Skip to contentSkip to conversation

gpio: mockup: coding-style fix

PATCH In review Bartosz Golaszewski 2 participants 2 messages Feb 10, 2020 – Feb 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: mockup: coding-style fix

From: Bartosz Golaszewski <[email protected]>

The indentation is wrong in gpio_mockup_apply_pull(). This patch makes the code more readable.

---
This fixes another indentation error introduced in v5.5 that I missed before.

 drivers/gpio/gpio-mockup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mockup.c +1 -1
index 7d343bea784a..3eb94f3740d1 100644
@@ -171,7 +171,7 @@ static int gpio_mockup_apply_pull(struct gpio_mockup_chip *chip,
 
 	/* Change the value unless we're actively driving the line. */
 	if (!test_bit(FLAG_REQUESTED, &desc->flags) ||
-		!test_bit(FLAG_IS_OUT, &desc->flags))
+	    !test_bit(FLAG_IS_OUT, &desc->flags))
 		__gpio_mockup_set(chip, offset, value);
 
 out:
Signature · 1 line
2.25.0