sifive.c (53aa930dc4bae6aa269951bd37103083145d6691) | sifive.c (bec5b814d46c2a704c3c8148752e62a33e9fa6dc) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * SiFive UART driver 4 * Copyright (C) 2018 Paul Walmsley <paul@pwsan.com> 5 * Copyright (C) 2018-2019 SiFive 6 * 7 * Based partially on: 8 * - drivers/tty/serial/pxa.c --- 632 unchanged lines hidden (view full) --- 641 __ssp_update_div(ssp); 642 } 643 644 return NOTIFY_OK; 645} 646 647static void sifive_serial_set_termios(struct uart_port *port, 648 struct ktermios *termios, | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * SiFive UART driver 4 * Copyright (C) 2018 Paul Walmsley <paul@pwsan.com> 5 * Copyright (C) 2018-2019 SiFive 6 * 7 * Based partially on: 8 * - drivers/tty/serial/pxa.c --- 632 unchanged lines hidden (view full) --- 641 __ssp_update_div(ssp); 642 } 643 644 return NOTIFY_OK; 645} 646 647static void sifive_serial_set_termios(struct uart_port *port, 648 struct ktermios *termios, |
649 struct ktermios *old) | 649 const struct ktermios *old) |
650{ 651 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); 652 unsigned long flags; 653 u32 v, old_v; 654 int rate; 655 char nstop; 656 657 if ((termios->c_cflag & CSIZE) != CS8) { --- 436 unchanged lines hidden --- | 650{ 651 struct sifive_serial_port *ssp = port_to_sifive_serial_port(port); 652 unsigned long flags; 653 u32 v, old_v; 654 int rate; 655 char nstop; 656 657 if ((termios->c_cflag & CSIZE) != CS8) { --- 436 unchanged lines hidden --- |