diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2022-06-06 13:04:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-10 13:49:57 +0200 |
commit | b9759cba3221767ac1910b0cff65ec588003b9a6 (patch) | |
tree | 6c352f0a7952239545d684f814b188a27bdd59ba /drivers/tty | |
parent | 61bca7da91c680ef140ecb35c27d887406bd4167 (diff) | |
download | linux-b9759cba3221767ac1910b0cff65ec588003b9a6.tar.gz linux-b9759cba3221767ac1910b0cff65ec588003b9a6.tar.bz2 linux-b9759cba3221767ac1910b0cff65ec588003b9a6.zip |
serial: pl011: Remove serial_rs485 sanitization
Serial core handles serial_rs485 sanitization.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220606100433.13793-30-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/amba-pl011.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index cdc466e89aa8..eccd66625d25 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2681,17 +2681,12 @@ static int pl011_find_free_port(void) static int pl011_get_rs485_mode(struct uart_amba_port *uap) { struct uart_port *port = &uap->port; - struct serial_rs485 *rs485 = &port->rs485; int ret; ret = uart_get_rs485_mode(port); if (ret) return ret; - /* clamp the delays to [0, 100ms] */ - rs485->delay_rts_before_send = min(rs485->delay_rts_before_send, 100U); - rs485->delay_rts_after_send = min(rs485->delay_rts_after_send, 100U); - return 0; } |