tty/vt: consolemap: convert macros to static inlines
authorJiri Slaby <jslaby@suse.cz>
Tue, 7 Jun 2022 10:49:16 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 11:37:01 +0000 (13:37 +0200)
commitf827c754f9b6247f4d4f9cbb508b22bff2cf8e6d
tree6127ee183f14641522e6ead8a33756b31b194f7c
parent0b75f7968d61566d150747512344cabaa59e54c6
tty/vt: consolemap: convert macros to static inlines

This commit changes !CONFIG_CONSOLE_TRANSLATIONS definitions to real
(inline) functions. So the commit:
* makes type checking much stronger,
* removes the need of many parentheses and casts, and
* makes the code more readable.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220607104946.18710-6-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/consolemap.h