expo: Rename exp_set_text_mode()

Rename this function to match its peers, using the full "expo' prefix.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2023-06-01 10:22:37 -06:00 committed by Tom Rini
parent a8f80409b0
commit 5904d953a1
4 changed files with 5 additions and 5 deletions

View file

@ -209,7 +209,7 @@ int bootflow_menu_run(struct bootstd_priv *std, bool text_mode,
return log_msg_ret("scn", ret); return log_msg_ret("scn", ret);
if (text_mode) if (text_mode)
exp_set_text_mode(exp, text_mode); expo_set_text_mode(exp, text_mode);
done = false; done = false;
do { do {

View file

@ -97,7 +97,7 @@ int expo_set_display(struct expo *exp, struct udevice *dev)
return 0; return 0;
} }
void exp_set_text_mode(struct expo *exp, bool text_mode) void expo_set_text_mode(struct expo *exp, bool text_mode)
{ {
exp->text_mode = text_mode; exp->text_mode = text_mode;
} }

View file

@ -306,12 +306,12 @@ int expo_set_scene_id(struct expo *exp, uint scene_id);
int expo_render(struct expo *exp); int expo_render(struct expo *exp);
/** /**
* exp_set_text_mode() - Controls whether the expo renders in text mode * expo_set_text_mode() - Controls whether the expo renders in text mode
* *
* @exp: Expo to update * @exp: Expo to update
* @text_mode: true to use text mode, false to use the console * @text_mode: true to use text mode, false to use the console
*/ */
void exp_set_text_mode(struct expo *exp, bool text_mode); void expo_set_text_mode(struct expo *exp, bool text_mode);
/** /**
* scene_new() - create a new scene in a expo * scene_new() - create a new scene in a expo

View file

@ -507,7 +507,7 @@ static int expo_render_image(struct unit_test_state *uts)
ut_assert_console_end(); ut_assert_console_end();
/* now try in text mode */ /* now try in text mode */
exp_set_text_mode(exp, true); expo_set_text_mode(exp, true);
ut_assertok(expo_render(exp)); ut_assertok(expo_render(exp));
ut_assert_nextline("U-Boot : Boot Menu"); ut_assert_nextline("U-Boot : Boot Menu");