diff options
author | Jiri Slaby <jslaby@suse.cz> | 2022-06-14 11:05:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-27 14:17:12 +0200 |
commit | 1c2f6294a3613b84fc20d6620da078dedbb2ac1e (patch) | |
tree | f07f5cdd18a232381033ab219873f555ebd6025d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 8da443b1a4036b5863fd2ec7e0251164b704c726 (diff) |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions