timbuart.c (8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17) timbuart.c (bec5b814d46c2a704c3c8148752e62a33e9fa6dc)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * timbuart.c timberdale FPGA UART driver
4 * Copyright (c) 2009 Intel Corporation
5 */
6
7/* Supports:
8 * Timberdale FPGA UART

--- 261 unchanged lines hidden (view full) ---

270 for (i = 0; i < ARRAY_SIZE(baudrates); i++)
271 if (baud <= baudrates[i])
272 return i;
273
274 return -1;
275}
276
277static void timbuart_set_termios(struct uart_port *port,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * timbuart.c timberdale FPGA UART driver
4 * Copyright (c) 2009 Intel Corporation
5 */
6
7/* Supports:
8 * Timberdale FPGA UART

--- 261 unchanged lines hidden (view full) ---

270 for (i = 0; i < ARRAY_SIZE(baudrates); i++)
271 if (baud <= baudrates[i])
272 return i;
273
274 return -1;
275}
276
277static void timbuart_set_termios(struct uart_port *port,
278 struct ktermios *termios,
279 struct ktermios *old)
278 struct ktermios *termios,
279 const struct ktermios *old)
280{
281 unsigned int baud;
282 short bindex;
283 unsigned long flags;
284
285 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
286 bindex = get_bindex(baud);
287 dev_dbg(port->dev, "%s - bindex %d\n", __func__, bindex);

--- 215 unchanged lines hidden ---
280{
281 unsigned int baud;
282 short bindex;
283 unsigned long flags;
284
285 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16);
286 bindex = get_bindex(baud);
287 dev_dbg(port->dev, "%s - bindex %d\n", __func__, bindex);

--- 215 unchanged lines hidden ---