video console: refactoring and optimization
authorDzmitry Sankouski <dsankouski@gmail.com>
Tue, 7 Mar 2023 10:21:11 +0000 (13:21 +0300)
committerAnatolij Gustschin <agust@denx.de>
Tue, 7 Mar 2023 12:26:08 +0000 (13:26 +0100)
commit3154725949f921ac017e0e58fb167fd1b603b025
tree9f098420b14f10a3d2940a0e45a3e9480d8b7f65
parentd1653548d29959a6ea6b4037a00b48a28257e6e6
video console: refactoring and optimization

- move common code to vidconsole_internal.h and console_core.c
- unite probe functions
- get rid of code duplications in switch across bpp values
- extract common pixel fill logic in two functions one per
horizontal and vertical filling
- rearrange statements in put_xy* methods in unified way
- replace types - uint*_t to u*

Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/Makefile
drivers/video/console_core.c [new file with mode: 0644]
drivers/video/console_normal.c
drivers/video/console_rotate.c
drivers/video/vidconsole_internal.h [new file with mode: 0644]
include/video_console.h