[Concept,4/5] api: Rename api_init() to legacy_api_init()
Commit Message
From: Simon Glass <sjg@chromium.org>
Complete the rename of this API so that it is clear it is considered
deprecated.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
include/legacy_api.h | 6 ++++--
legacy_api/api.c | 2 +-
legacy_api/api_private.h | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
@@ -8,13 +8,15 @@
#define __LEGACY_API_H
/**
- * api_init() - Initialize API for external applications
+ * legacy_api_init() - Initialize legacy API for external applications
*
* Initialize API for external (standalone) applications running on top of
* U-Boot. It is called during the generic post-relocation init sequence.
*
+ * Note that this is deprecated.
+ *
* Return: 0 if OK
*/
-int api_init(void);
+int legacy_api_init(void);
#endif
@@ -638,7 +638,7 @@ int syscall(int call, int *retval, ...)
return 1;
}
-int api_init(void)
+int legacy_api_init(void)
{
struct api_signature *sig;
@@ -8,7 +8,7 @@
#ifndef _API_PRIVATE_H_
#define _API_PRIVATE_H_
-int api_init(void);
+int legacy_api_init(void);
void platform_set_mr(struct sys_info *, unsigned long, unsigned long, int);
int platform_sys_info(struct sys_info *);