Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

memory: omap-gpmc: use the dedicated define for GPIO direction

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>
Link: https://lore.kernel.org/r/20250407-gpiochip-set-rv-memory-v1-1-5ab0282a9da7@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Bartosz Golaszewski and committed by
Krzysztof Kozlowski
a63f9903 0af2f6be

+1 -1
+1 -1
drivers/memory/omap-gpmc.c
··· 2376 2376 2377 2377 static int gpmc_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) 2378 2378 { 2379 - return 1; /* we're input only */ 2379 + return GPIO_LINE_DIRECTION_IN; /* we're input only */ 2380 2380 } 2381 2381 2382 2382 static int gpmc_gpio_direction_input(struct gpio_chip *chip,