aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2017-09-13 10:18:27 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 18:36:25 +0200
commitef838a81dd4de1e08454406812e42d7b9b417c4d (patch)
treef4b6199f8e7add38f65e5dd62a0c425db7c9fec2 /include/linux/serial_core.h
parentserial: fsl_lpuart: Remove unused 'bd' variable (diff)
downloadlinux-dev-ef838a81dd4de1e08454406812e42d7b9b417c4d.tar.xz
linux-dev-ef838a81dd4de1e08454406812e42d7b9b417c4d.zip
serial: Add common rs485 device tree parsing function
Several drivers have the same device tree parsing code. Create a common helper function for it. This patch bases on work done by Sascha Hauer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 5553e04e59c9..37b044e78333 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -501,4 +501,9 @@ static inline int uart_handle_break(struct uart_port *port)
(cflag) & CRTSCTS || \
!((cflag) & CLOCAL))
+/*
+ * Common device tree parsing helpers
+ */
+void of_get_rs485_mode(struct device_node *np, struct serial_rs485 *rs485conf);
+
#endif /* LINUX_SERIAL_CORE_H */