kconfig: change file_lookup() to return the file name

Currently, file_lookup() returns a pointer to (struct file), but the
callers use only file->name.

Make it return the ->name member directly.

This adjustment encapsulates struct file and file_list as internal
implementation.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada
2024-02-03 00:58:16 +09:00
parent 6676c5bc15
commit 5b058034e3
5 changed files with 13 additions and 16 deletions
-2
View File
@@ -16,8 +16,6 @@ static const char nohelp_text[] = "There is no help available for this option.";
struct menu rootmenu;
static struct menu **last_entry_ptr;
struct file *file_list;
void menu_warn(struct menu *menu, const char *fmt, ...)
{
va_list ap;