Skip to content

Commit ee8598a

Browse files
committed
gpio: mockup: fix coding style
I have missed two indentation issues in commit 64e7112 ("gpio: mockup: add set_config to support pull up/down"). This commit fixes them. Fixes: 64e7112 ("gpio: mockup: add set_config to support pull up/down") Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent fd69884 commit ee8598a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio-mockup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int gpio_mockup_apply_pull(struct gpio_mockup_chip *chip,
156156
mutex_lock(&chip->lock);
157157

158158
if (test_bit(FLAG_REQUESTED, &desc->flags) &&
159-
!test_bit(FLAG_IS_OUT, &desc->flags)) {
159+
!test_bit(FLAG_IS_OUT, &desc->flags)) {
160160
curr = __gpio_mockup_get(chip, offset);
161161
if (curr == value)
162162
goto out;
@@ -165,7 +165,7 @@ static int gpio_mockup_apply_pull(struct gpio_mockup_chip *chip,
165165
irq_type = irq_get_trigger_type(irq);
166166

167167
if ((value == 1 && (irq_type & IRQ_TYPE_EDGE_RISING)) ||
168-
(value == 0 && (irq_type & IRQ_TYPE_EDGE_FALLING)))
168+
(value == 0 && (irq_type & IRQ_TYPE_EDGE_FALLING)))
169169
irq_sim_fire(sim, offset);
170170
}
171171

0 commit comments

Comments
 (0)