summaryrefslogtreecommitdiff
path: root/boot/scene.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 19:22:34 +0300
committerTom Rini <trini@konsulko.com>2023-07-14 19:54:51 +0300
commit42b18494bdaf677c4726ef47a839b16a1a3daba2 (patch)
treeb07140ea3d5819b6b4ce904f6506dc0462e7d944 /boot/scene.c
parent0ab4f91a107832692781a367a1ef2173af75f108 (diff)
downloadu-boot-42b18494bdaf677c4726ef47a839b16a1a3daba2.tar.xz
expo: Store the console in the expo
Rather than finding this each time, keep a pointer to it. This simplifies the code a little. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene.c')
-rw-r--r--boot/scene.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/boot/scene.c b/boot/scene.c
index d2f77c008c..7e9ba047f2 100644
--- a/boot/scene.c
+++ b/boot/scene.c
@@ -278,16 +278,10 @@ static int scene_obj_render(struct scene_obj *obj, bool text_mode)
{
struct scene *scn = obj->scene;
struct expo *exp = scn->expo;
- struct udevice *cons, *dev = exp->display;
+ struct udevice *dev = exp->display;
+ struct udevice *cons = text_mode ? NULL : exp->cons;
int x, y, ret;
- cons = NULL;
- if (!text_mode) {
- ret = device_find_first_child_by_uclass(dev,
- UCLASS_VIDEO_CONSOLE,
- &cons);
- }
-
x = obj->x;
y = obj->y;