serial/8250: Add support for RS485 IOCTLs
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Tue, 5 Aug 2014 09:45:59 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 22:26:26 +0000 (15:26 -0700)
commite676253b19b2d269cccf67fdb1592120a0cd0676
tree34618c8fbe8069d007fb2a38ff8b2679dc6a10ea
parent27d5775e75ec70c104479bd7fcdceb0d6e0203a8
serial/8250: Add support for RS485 IOCTLs

This patch allow the users of the 8250 infrastructure to define a
handler for RS485 configration.

If no handler is defined the 8250 driver will work as usual.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
--
v2:Change suggested by Alan "One Thousand Gnomes":
- Move rs485 structure further down on the uart_8250_port structure

 drivers/tty/serial/8250/8250_core.c | 39 +++++++++++++++++++++++++++++++++++++
 include/linux/serial_8250.h         |  3 +++
 2 files changed, 42 insertions(+)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
include/linux/serial_8250.h