]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc8c4cd37ca1fb37dc36ac3a4d422a85ff4654bd
tree3ca458344331076259118f9021aee41bdd0ef58a
parent0292ae8e5ce8b901914dc51251b0f8f529733c53
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