mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user