diff options
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index f14aeac67d4f..f9d0d91a3fe4 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -417,3 +417,15 @@ struct menu *menu_get_parent_menu(struct menu *menu) | |||
417 | return menu; | 417 | return menu; |
418 | } | 418 | } |
419 | 419 | ||
420 | bool menu_has_help(struct menu *menu) | ||
421 | { | ||
422 | return menu->help != NULL; | ||
423 | } | ||
424 | |||
425 | const char *menu_get_help(struct menu *menu) | ||
426 | { | ||
427 | if (menu->help) | ||
428 | return menu->help; | ||
429 | else | ||
430 | return ""; | ||
431 | } | ||