diff mbox series

[1/2] memory: omap-gpmc: use the dedicated define for GPIO direction

Message ID 20250407-gpiochip-set-rv-memory-v1-1-5ab0282a9da7@linaro.org (mailing list archive)
State New
Headers show
Series memory: omap-gpmc: improve the GPIO chip implementation | expand

Commit Message

Bartosz Golaszewski April 7, 2025, 7:21 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

We have a constant defined for this purpose in the gpio/driver.h header
so use it instead of a magic value.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/memory/omap-gpmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index 53f1888cc84f..d4fe4c5a57e7 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -2376,7 +2376,7 @@  static void gpmc_probe_dt_children(struct platform_device *pdev)
 
 static int gpmc_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
 {
-	return 1;	/* we're input only */
+	return GPIO_LINE_DIRECTION_IN; /* we're input only */
 }
 
 static int gpmc_gpio_direction_input(struct gpio_chip *chip,