]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: mxs-auart: replace hardcoded 1 with predefined macro GPIO_LINE_DIRECTION_IN
authorNikola Z. Ivanov <zlatistiv@gmail.com>
Sun, 26 Apr 2026 21:42:50 +0000 (00:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 May 2026 14:55:37 +0000 (16:55 +0200)
commit455d4ed5ea5dbdd690f96b5e0582d760cbfc9e8d
tree955e7efa5cf80cb908a7f87a97168e907ab5fc0c
parentf785606039fdc8c4de2908dfe9bd672de15a76ce
serial: mxs-auart: replace hardcoded 1 with predefined macro GPIO_LINE_DIRECTION_IN

The GPIO_LINE_DIRECTION_* definitions have just recently been exposed to
gpio consumers.h by breaking them out in a separate defs.h file.

Use this to validate the gpio direction instead of the hard-coded literal.

Signed-off-by: Nikola Z. Ivanov <zlatistiv@gmail.com>
Link: https://patch.msgid.link/20260426214250.781151-1-zlatistiv@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c