kconfig: change file_lookup() to return the file name
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 2 Feb 2024 15:58:16 +0000 (00:58 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 19 Feb 2024 09:20:41 +0000 (18:20 +0900)
commit5b058034e3aa600802ab609e8264dc2ca1300ebe
treeb40e310dcfe6b0b32ac8819392ab255813259f89
parent6676c5bc15e66268c9c9669d5852aa779689c74e
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>
scripts/kconfig/expr.h
scripts/kconfig/lexer.l
scripts/kconfig/lkc.h
scripts/kconfig/menu.c
scripts/kconfig/util.c