aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/imx.c
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2022-07-04 12:45:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-08 15:14:09 +0200
commit0139da50dc53f0ce2804e83566d290c7e626fd17 (patch)
tree64a16d1575d9ab0ae529e86f42682c965d0ecd4d /drivers/tty/serial/imx.c
parentMIPS: ath79: Remove one of the identical args in early_printk (diff)
downloadlinux-dev-0139da50dc53f0ce2804e83566d290c7e626fd17.tar.xz
linux-dev-0139da50dc53f0ce2804e83566d290c7e626fd17.zip
serial: Embed rs485_supported to uart_port
Embed rs485_supported to uart_port to allow serial core to tweak it as needed. Reviewed-by: Lino Sanfilippo <l.sanfilippo@kunbus.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20220704094515.6831-2-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r--drivers/tty/serial/imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index 3457006cea3f..522445a8f666 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2285,9 +2285,9 @@ static int imx_uart_probe(struct platform_device *pdev)
sport->port.rs485_config = imx_uart_rs485_config;
/* RTS is required to control the RS485 transmitter */
if (sport->have_rtscts || sport->have_rtsgpio)
- sport->port.rs485_supported = &imx_rs485_supported;
+ sport->port.rs485_supported = imx_rs485_supported;
else
- sport->port.rs485_supported = &imx_no_rs485;
+ sport->port.rs485_supported = imx_no_rs485;
sport->port.flags = UPF_BOOT_AUTOCONF;
timer_setup(&sport->timer, imx_uart_timeout, 0);