OSDN Git Service

serial: sa1100: add support for mctrl gpios
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 31 Aug 2016 07:49:52 +0000 (08:49 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 4 Jun 2019 11:56:31 +0000 (12:56 +0100)
commitd9d03e2c90553b5e329fc8c753211ab81ad43786
treeb502ffaa97e725f5ca92974a113f40e7c6632728
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
serial: sa1100: add support for mctrl gpios

Add support for the generic mctrl gpio helper.  This will allow us to
convert several board files to use the gpiod tables to assign GPIOs to
serial ports, rather than needing to have private function callbacks.

If the generic mctrl gpio helper fails, ignore the mctrl gpios rather
than preventing the (possibly console) serial port from being created.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/tty/serial/Kconfig
drivers/tty/serial/sa1100.c