TTY: simserial/amiserial, use one instance of other members
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:16 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:27:17 +0000 (12:27 -0800)
commitd852256389f1bcf506710ea5de77debde40013b9
tree63235762da2d6ad860a8a281118cd53ced34736f
parent979b6d89766ed573bca6a6e902193c4cad502909
TTY: simserial/amiserial, use one instance of other members

This means:
* close_delay
* closing_wait
* line
* port
* xmit_fifo_size

This actually fixes a bug in amiserial. It initializes one and uses
the other of the close delays. Yes, duplicating structure members is
evil.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/ia64/hp/sim/simserial.c
drivers/tty/amiserial.c
include/linux/serialP.h