diff options
author | Anatolij Gustschin <agust@denx.de> | 2013-03-23 14:52:04 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2013-03-29 09:35:34 +0100 |
commit | 6a3439fdadb7b98e72883b90eb717a04cd748e44 (patch) | |
tree | 4b40cfc6aa5328cd72557d9d4d95f3720301e7d3 /common | |
parent | fc9d64ffcd94c1e22675830eae13956cc4fd822d (diff) | |
download | u-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.zip u-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.tar.gz u-boot-imx-6a3439fdadb7b98e72883b90eb717a04cd748e44.tar.bz2 |
menu: export menu_default_choice() function
Checking the default menu item and obtaining its data can
be useful in custom menu code. Export menu_default_choice()
function which serves this purpose.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/menu.c b/common/menu.c index 322b75e..64b461a 100644 --- a/common/menu.c +++ b/common/menu.c @@ -176,7 +176,7 @@ static inline struct menu_item *menu_item_by_key(struct menu *m, * Set *choice to point to the default item's data, if any default item was * set, and returns 1. If no default item was set, returns -ENOENT. */ -static inline int menu_default_choice(struct menu *m, void **choice) +int menu_default_choice(struct menu *m, void **choice) { if (m->default_item) { *choice = m->default_item->data; |