]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc348a2789f21747e890e4994e4dd2d01a22916e
tree6127ee183f14641522e6ead8a33756b31b194f7c
parent90665237afea8a7cfe645aca52b8983caa5920b8
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