diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-03 00:58:16 +0900 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-02-19 18:20:41 +0900 |
| commit | 5b058034e3aa600802ab609e8264dc2ca1300ebe (patch) | |
| tree | b40e310dcfe6b0b32ac8819392ab255813259f89 /scripts/kconfig/lkc.h | |
| parent | 6676c5bc15e66268c9c9669d5852aa779689c74e (diff) | |
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>
Diffstat (limited to 'scripts/kconfig/lkc.h')
| -rw-r--r-- | scripts/kconfig/lkc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index d8249052f2e3..71afcbd56273 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -52,7 +52,7 @@ static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out) } /* util.c */ -struct file *file_lookup(const char *name); +const char *file_lookup(const char *name); void *xmalloc(size_t size); void *xcalloc(size_t nmemb, size_t size); void *xrealloc(void *p, size_t size); |
