serial: mctrl_gpio: Drop support for out1-gpios and out2-gpios
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 Apr 2016 11:40:26 +0000 (13:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 May 2016 20:22:54 +0000 (13:22 -0700)
The OUT1 and OUT2 pins present on some legacy UARTs are basically GPIOs.
It doesn't make much sense to emulate GPIOs using other GPIOs, hence
drop support for that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Reviewed-by: Richard Genoud <richard.genoud@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_mctrl_gpio.c
drivers/tty/serial/serial_mctrl_gpio.h

index 9e1086f..e8dd509 100644 (file)
@@ -43,8 +43,6 @@ static const struct {
        { "rng", TIOCM_RNG, false, },
        { "rts", TIOCM_RTS, true, },
        { "dtr", TIOCM_DTR, true, },
-       { "out1", TIOCM_OUT1, true, },
-       { "out2", TIOCM_OUT2, true, },
 };
 
 void mctrl_gpio_set(struct mctrl_gpios *gpios, unsigned int mctrl)
index bcfad5d..332a33a 100644 (file)
@@ -32,8 +32,6 @@ enum mctrl_gpio_idx {
        UART_GPIO_RI = UART_GPIO_RNG,
        UART_GPIO_RTS,
        UART_GPIO_DTR,
-       UART_GPIO_OUT1,
-       UART_GPIO_OUT2,
        UART_GPIO_MAX,
 };