vt: switch G0/1_charset to an array
authorJiri Slaby <jslaby@suse.cz>
Mon, 15 Jun 2020 07:48:37 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:08:31 +0000 (17:08 +0200)
commitb70ec4d97f4cc4f6f804ca57419d070b80a9874e
tree88e2ac5845ed8b0f1f89e7ef4deabe8cbaa483d2
parentb4d92b6575ac3c2d0ed8310d6b8279968dca10b8
vt: switch G0/1_charset to an array

Declare Gx_charset[2] instead of G0_charset and G1_charset. It makes
the code simpler (without ternary operators).

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200615074910.19267-5-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
include/linux/console_struct.h