TTY: serial, cleanup include file
authorJiri Slaby <jslaby@suse.cz>
Wed, 9 Nov 2011 20:33:43 +0000 (21:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 23:58:56 +0000 (15:58 -0800)
commit027d7dacf73273dbe07a75b2ef5579616f17272c
tree27a59e5a024cca9740a385a5c4acc27b17a909ca
parentf3706266198d3efb0fd589f34fa8471478ea364d
TTY: serial, cleanup include file

There are some functions (uart_handle_dcd_change, _handle_cts_change,
_insert_char) which are big enough to not be inlined. So move them
from .h to .c. We need to export them so that modules can actually use
them.

They will be even bigger when we introduce tty refcounting to them.

While at it, cleanup the "Proud member of Uglyhacks'R'US". It means,
define uart_handle_sysrq_char only when SUPPORT_SYSRQ is set.
Otherwise define it as a macro. This is needed for some arm driver
where the second parameter is undefined if expanded.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/serial_core.c
include/linux/serial_core.h