[PATCH 19/19] gpio: zynqmp-modepin: set line value in .direction_output()
Bartosz Golaszewski
brgl at bgdev.pl
Tue Jul 8 23:41:56 PDT 2025
From: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
It's ok to not do anything specific when setting direction but the
callback should still respect the line value the user requests.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski at linaro.org>
---
drivers/gpio/gpio-zynqmp-modepin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-zynqmp-modepin.c b/drivers/gpio/gpio-zynqmp-modepin.c
index 36a547d6fc5a5c100f81c72600e14d620a462cc5..6dc5d7acb89c544d8dd9e217c96e41cc5599d116 100644
--- a/drivers/gpio/gpio-zynqmp-modepin.c
+++ b/drivers/gpio/gpio-zynqmp-modepin.c
@@ -104,7 +104,7 @@ static int modepin_gpio_dir_in(struct gpio_chip *chip, unsigned int pin)
static int modepin_gpio_dir_out(struct gpio_chip *chip, unsigned int pin,
int state)
{
- return 0;
+ return modepin_gpio_set_value(chip, pin, state);
}
/**
--
2.48.1
More information about the linux-arm-kernel
mailing list