mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
gpio: mpsse: propagate error from direction_input
Not sure how I missed this, but errors encountered when setting the direction to input weren't being propagated to the caller. Signed-off-by: Mary Strodl <mstrodl@csh.rit.edu> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20251014133530.3592716-2-mstrodl@csh.rit.edu Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
committed by
Bartosz Golaszewski
parent
0efa5b2ca6
commit
523ebae1cd
@@ -261,9 +261,8 @@ static int gpio_mpsse_direction_input(struct gpio_chip *chip,
|
||||
|
||||
guard(mutex)(&priv->io_mutex);
|
||||
priv->gpio_dir[bank] &= ~BIT(bank_offset);
|
||||
gpio_mpsse_set_bank(priv, bank);
|
||||
|
||||
return 0;
|
||||
return gpio_mpsse_set_bank(priv, bank);
|
||||
}
|
||||
|
||||
static int gpio_mpsse_get_direction(struct gpio_chip *chip,
|
||||
|
||||
Reference in New Issue
Block a user