Skip to content

Commit a63f990

Browse files
Bartosz Golaszewskikrzk
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 0af2f6b commit a63f990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ static void gpmc_probe_dt_children(struct platform_device *pdev)
23762376

23772377
static int gpmc_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
23782378
{
2379-
return 1; /* we're input only */
2379+
return GPIO_LINE_DIRECTION_IN; /* we're input only */
23802380
}
23812381

23822382
static int gpmc_gpio_direction_input(struct gpio_chip *chip,

0 commit comments

Comments
 (0)