diff options
| author | Simon Glass <[email protected]> | 2019-08-02 09:44:25 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-11 19:27:31 -0400 |
| commit | f3998fdc4d0871727d7be6838bac750c6323c0a8 (patch) | |
| tree | a70bc57308dd8c516ec78ea057dbfd0ac331214b /include | |
| parent | e7dcf5645f09504573f534b0fc9abbbc6ff8a5ad (diff) | |
env: Rename environment.h to env_internal.h
This file contains lots of internal details about the environment. Most
code can include env.h instead, calling the functions there as needed.
Rename this file and add a comment at the top to indicate its internal
nature.
Signed-off-by: Simon Glass <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Reviewed-by: Simon Goldschmidt <[email protected]>
[trini: Fixup apalis-tk1.c]
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/common.h | 2 | ||||
| -rw-r--r-- | include/env_internal.h (renamed from include/environment.h) | 14 |
2 files changed, 12 insertions, 4 deletions
diff --git a/include/common.h b/include/common.h index 34ae5148058..f8afbc0d705 100644 --- a/include/common.h +++ b/include/common.h @@ -394,7 +394,7 @@ int cpu_release(u32 nr, int argc, char * const argv[]); /* Pull in stuff for the build system */ #ifdef DO_DEPS_ONLY -# include <environment.h> +# include <env_internal.h> #endif #endif /* __COMMON_H_ */ diff --git a/include/environment.h b/include/env_internal.h index cc8c0546c29..b1ddcb5adfd 100644 --- a/include/environment.h +++ b/include/env_internal.h @@ -1,11 +1,19 @@ /* SPDX-License-Identifier: GPL-2.0+ */ /* + * Internal environment header file. This includes direct access to environment + * information such as its size and offset, direct access to the default + * environment and embedded environment (if used). It also provides environment + * drivers with various declarations. + * + * It should not be included by board files, drivers and code other than that + * related to the environment implementation. + * * (C) Copyright 2002 * Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#ifndef _ENVIRONMENT_H_ -#define _ENVIRONMENT_H_ +#ifndef _ENV_INTERNAL_H_ +#define _ENV_INTERNAL_H_ #include <linux/kconfig.h> @@ -267,4 +275,4 @@ extern struct hsearch_data env_htab; #endif /* DO_DEPS_ONLY */ -#endif /* _ENVIRONMENT_H_ */ +#endif /* _ENV_INTERNAL_H_ */ |
