]> git.baikalelectronics.ru Git - kernel.git/commit
tty/vt: consolemap: improve UNI_*() macros definitions
authorJiri Slaby <jslaby@suse.cz>
Tue, 14 Jun 2022 09:05:35 +0000 (11:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:17:12 +0000 (14:17 +0200)
commitc228203c84d332cc6d5e8e9c31f12ebe81c06998
treef07f5cdd18a232381033ab219873f555ebd6025d
parent1b581853fd3a72d3e78bd57a9e7e3d04bffb054b
tty/vt: consolemap: improve UNI_*() macros definitions

Use FIELD_GET() and GENMASK() helpers instead of direct shifts and ANDs.
This makes the code even more obvious. I didn't know about the helpers
at the time of writing the macros.

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