lkml.org 
[lkml]   [2011]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND 1/8] serial: 8250: replace hardcoded 0xbf with #define
    Date
    Makes it easier to find all occurences requesting CONF_MODE_B.

    Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
    ---
    drivers/tty/serial/8250.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/tty/serial/8250.c b/drivers/tty/serial/8250.c
    index eeadf1b..f8f2320 100644
    --- a/drivers/tty/serial/8250.c
    +++ b/drivers/tty/serial/8250.c
    @@ -2000,7 +2000,7 @@ static int serial8250_startup(struct uart_port *port)
    serial_outp(up, UART_IER, 0);
    serial_outp(up, UART_LCR, 0);
    serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
    - serial_outp(up, UART_LCR, 0xBF);
    + serial_outp(up, UART_LCR, UART_LCR_CONF_MODE_B);
    serial_outp(up, UART_EFR, UART_EFR_ECB);
    serial_outp(up, UART_LCR, 0);
    }
    --
    1.7.7.3


    \
     
     \ /
      Last update: 2011-12-09 18:11    [W:0.022 / U:126.820 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site