aboutsummaryrefslogtreecommitdiff
path: root/include/expo.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-06-01 10:22:34 -0600
committerTom Rini <trini@konsulko.com>2023-07-14 12:54:51 -0400
commit42b18494bdaf677c4726ef47a839b16a1a3daba2 (patch)
treeb07140ea3d5819b6b4ce904f6506dc0462e7d944 /include/expo.h
parent0ab4f91a107832692781a367a1ef2173af75f108 (diff)
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 'include/expo.h')
-rw-r--r--include/expo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/expo.h b/include/expo.h
index 8827f4b0b4..06f5629e03 100644
--- a/include/expo.h
+++ b/include/expo.h
@@ -50,6 +50,7 @@ struct expo_action {
*
* @name: Name of the expo (allocated)
* @display: Display to use (`UCLASS_VIDEO`), or NULL to use text mode
+ * @cons: Console to use (`UCLASS_VIDEO_CONSOLE`), or NULL to use text mode
* @scene_id: Current scene ID (0 if none)
* @next_id: Next ID number to use, for automatic allocation
* @action: Action selected by user. At present only one is supported, with the
@@ -62,6 +63,7 @@ struct expo_action {
struct expo {
char *name;
struct udevice *display;
+ struct udevice *cons;
uint scene_id;
uint next_id;
struct expo_action action;