api: Rename api_init() to legacy_api_init()

Complete the rename of this API so that it is clear it is considered
deprecated.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-05 06:58:21 -06:00
parent 18d0bb3158
commit ae1f0f13e4
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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 *);