Correct SPL uses of VIDEO

This converts 2 usages of this option to the non-SPL form, since there is
no SPL_VIDEO defined in Kconfig

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-02-05 15:44:27 -07:00 committed by Tom Rini
parent 0ff8bb8724
commit 1f69cbe1f1
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc,
/* Send clear screen and home */ /* Send clear screen and home */
printf(CSI "2J" CSI "1;1H"); printf(CSI "2J" CSI "1;1H");
if (CONFIG_IS_ENABLED(VIDEO) && !CONFIG_IS_ENABLED(VIDEO_ANSI)) { if (IS_ENABLED(CONFIG_VIDEO) && !CONFIG_IS_ENABLED(VIDEO_ANSI)) {
if (uclass_first_device_err(UCLASS_VIDEO, &dev)) if (uclass_first_device_err(UCLASS_VIDEO, &dev))
return CMD_RET_FAILURE; return CMD_RET_FAILURE;
if (video_clear(dev)) if (video_clear(dev))

View file

@ -82,7 +82,7 @@ int fdt_simplefb_enable_existing_node(void *blob)
return fdt_simplefb_configure_node(blob, off); return fdt_simplefb_configure_node(blob, off);
} }
#if CONFIG_IS_ENABLED(VIDEO) #if IS_ENABLED(CONFIG_VIDEO)
int fdt_simplefb_enable_and_mem_rsv(void *blob) int fdt_simplefb_enable_and_mem_rsv(void *blob)
{ {
struct fdt_memory mem; struct fdt_memory mem;