OSDN Git Service

tty/vt: consolemap: introduce enum translation_map and use it
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:27 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:02 +0000 (13:37 +0200)
commit5a904a936b407624cd1ff5ee3f1675ca3d2366a5
tree3ca458344331076259118f9021aee41bdd0ef58a
parent949fafcd7fa310e68bfd8828304150cdc9de5629
tty/vt: consolemap: introduce enum translation_map and use it

Again, instead of magic constants in the code, declare an enum and be a
little bit more explicit. Both in the translations definition and in the
loops etc.

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