1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-25 04:21:18 +02:00

flash: prefix error codes with FL_

Prefix the flash status codes (ERR_*) with FL_ in order to avoid clashes
with third-party libraries. Case in point: including the lwIP library
header file <lwip/err.h> which defines err_enum_t as an enum with values
being ERR_*.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
Jerome Forissier
2024-09-11 11:58:15 +02:00
committed by Tom Rini
parent 0c2d7ad3e0
commit 9aa7e531f6
6 changed files with 68 additions and 68 deletions

View File

@@ -127,16 +127,16 @@ void flash_perror(int err);
/*-----------------------------------------------------------------------
* return codes from flash_write():
*/
#define ERR_OK 0
#define ERR_TIMEOUT 1
#define ERR_NOT_ERASED 2
#define ERR_PROTECTED 4
#define ERR_INVAL 8
#define ERR_ALIGN 16
#define ERR_UNKNOWN_FLASH_VENDOR 32
#define ERR_UNKNOWN_FLASH_TYPE 64
#define ERR_PROG_ERROR 128
#define ERR_ABORTED 256
#define FL_ERR_OK 0
#define FL_ERR_TIMEOUT 1
#define FL_ERR_NOT_ERASED 2
#define FL_ERR_PROTECTED 4
#define FL_ERR_INVAL 8
#define FL_ERR_ALIGN 16
#define FL_ERR_UNKNOWN_FLASH_VENDOR 32
#define FL_ERR_UNKNOWN_FLASH_TYPE 64
#define FL_ERR_PROG_ERROR 128
#define FL_ERR_ABORTED 256
/*-----------------------------------------------------------------------
* Protection Flags for flash_protect():