summaryrefslogtreecommitdiff
path: root/board/menlo
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-18 15:46:08 +0300
committerAnatolij Gustschin <agust@denx.de>2022-10-30 22:07:16 +0300
commite65500338427b64e83a59432242a1ef295dd95f0 (patch)
tree596cfa2c659a73eb89dfa02983a8b08f6d73d9f6 /board/menlo
parent4adc28ebc6b2fb9acc6abbb15186de528d502ef7 (diff)
downloadu-boot-e65500338427b64e83a59432242a1ef295dd95f0.tar.xz
video: Rename CONFIG_SYS_VIDEO_LOGO_MAX_SIZE
This option should not have the SYS_ in it. Drop it so it fits in with the other video options. Also simplify the alignment code in gunzip_bmp(), since malloc() always returns a 32-bit-aligned pointer. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/menlo')
-rw-r--r--board/menlo/m53menlo/m53menlo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/menlo/m53menlo/m53menlo.c b/board/menlo/m53menlo/m53menlo.c
index 4afc5aaa43..14324c7087 100644
--- a/board/menlo/m53menlo/m53menlo.c
+++ b/board/menlo/m53menlo/m53menlo.c
@@ -358,7 +358,7 @@ int board_late_init(void)
return 0;
addr = hextoul(s, NULL);
- dst = malloc(CONFIG_SYS_VIDEO_LOGO_MAX_SIZE);
+ dst = malloc(CONFIG_VIDEO_LOGO_MAX_SIZE);
if (!dst)
return -ENOMEM;
@@ -366,8 +366,8 @@ int board_late_init(void)
if (ret < 0)
goto splasherr;
- len = CONFIG_SYS_VIDEO_LOGO_MAX_SIZE;
- ret = gunzip(dst + 2, CONFIG_SYS_VIDEO_LOGO_MAX_SIZE - 2,
+ len = CONFIG_VIDEO_LOGO_MAX_SIZE;
+ ret = gunzip(dst + 2, CONFIG_VIDEO_LOGO_MAX_SIZE - 2,
(uchar *)addr, &len);
if (ret) {
printf("Error: no valid bmp or bmp.gz image at %lx\n", addr);