amiserial: switch rs_table to a single state
authorJiri Slaby <jslaby@suse.cz>
Wed, 14 Jul 2021 09:13:13 +0000 (11:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jul 2021 10:49:51 +0000 (12:49 +0200)
commit6cc7bda16dfd4a5d89039302cf1668f9820dfb77
treeab0efb5838f5d040aec74ba8ba22ba60c7c81fd0
parentf3d788b4254c72d6d6f5e6fc8979f95295865e93
amiserial: switch rs_table to a single state

amiserial deals only with a single serial, so drop the rs_table array
and NR_PORTS and define a single non-array serial_state for simplicity
instead.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210714091314.8292-10-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/amiserial.c