]> git.baikalelectronics.ru Git - kernel.git/commit
serial: mxs-auart: don't use GPIOF_* with gpiod_get_direction
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 14 Jan 2018 21:07:09 +0000 (22:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 13:17:44 +0000 (14:17 +0100)
commitf8bdfe9d27350735d1cc787a5fd7c25078667496
treefad38561087a7136a40037513f3985a78d2cca81
parentc14b65feac9ebed649d6fe79c6b6d64d21d0287d
serial: mxs-auart: don't use GPIOF_* with gpiod_get_direction

The documentation was wrong, gpiod_get_direction() returns 0/1 instead
of the GPIOF_* flags. The docs were fixed with commit 94fc73094abe47
("gpio: correct docs about return value of gpiod_get_direction"). Now,
fix this user (until a better, system-wide solution is in place). This
also means we can drop the deprecated use of 'linux/gpio.h'. Yay!

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c