aboutsummaryrefslogtreecommitdiffstats
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-10-01 19:13:23 -0600
committerTom Rini <trini@konsulko.com>2023-10-11 15:43:55 -0400
commit909c486d7cc52efd0db0a1922778fe5c17e5be24 (patch)
tree2e6ce06ba8358d7350b02bc957e0998b5609cb0f /boot
parent5fb9e2aab5b92d19fb8a6646f3f2dde6fe6e997c (diff)
downloadu-boot-909c486d7cc52efd0db0a1922778fe5c17e5be24.tar.gz
expo: Fix up comments for get_cur_menuitem_text() et al
This internal function could use a comment. Add one. Also tidy up a few other comments. Signed-off-by: Simon Glass <sjg@chromium.org> fixup: comments
Diffstat (limited to 'boot')
-rw-r--r--boot/cedit.c10
-rw-r--r--boot/scene_internal.h2
2 files changed, 11 insertions, 1 deletions
diff --git a/boot/cedit.c b/boot/cedit.c
index 73645f70b6c..1324a861998 100644
--- a/boot/cedit.c
+++ b/boot/cedit.c
@@ -229,6 +229,16 @@ static int check_space(int ret, struct abuf *buf)
return 0;
}
+/**
+ * get_cur_menuitem_text() - Get the text of the currently selected item
+ *
+ * Looks up the object for the current item, finds text object for it and looks
+ * up the string for that text
+ *
+ * @menu: Menu to look at
+ * @strp: Returns a pointer to the next
+ * Return: 0 if OK, -ENOENT if something was not found
+ */
static int get_cur_menuitem_text(const struct scene_obj_menu *menu,
const char **strp)
{
diff --git a/boot/scene_internal.h b/boot/scene_internal.h
index 695a907dc6a..42efcee092f 100644
--- a/boot/scene_internal.h
+++ b/boot/scene_internal.h
@@ -185,7 +185,7 @@ int scene_render_deps(struct scene *scn, uint id);
* Renders the menu and all of its attached objects
*
* @scn: Scene to render
- * @menu: Menu render
+ * @menu: Menu to render
* Returns: 0 if OK, -ve on error
*/
int scene_menu_render_deps(struct scene *scn, struct scene_obj_menu *menu);