diff options
author | Jerome Forissier <jerome.forissier@linaro.org> | 2024-09-11 11:58:15 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-09-24 13:41:20 -0600 |
commit | 9aa7e531f6808579c9fa77b6407409da80a1e9ab (patch) | |
tree | 1d8f70a7c02b1e448b33a45e70340d3ab12d38f7 /board/freescale/m5253demo/flash.c | |
parent | 0c2d7ad3e0635a52d291035d9044922ef7b19e7a (diff) |
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>
Diffstat (limited to 'board/freescale/m5253demo/flash.c')
-rw-r--r-- | board/freescale/m5253demo/flash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/m5253demo/flash.c b/board/freescale/m5253demo/flash.c index 334518a4bc9..ab5d2ebff64 100644 --- a/board/freescale/m5253demo/flash.c +++ b/board/freescale/m5253demo/flash.c @@ -72,7 +72,7 @@ int flash_get_offsets(ulong base, flash_info_t * info) } } - return ERR_OK; + return FL_ERR_OK; } void flash_print_info(flash_info_t * info) @@ -369,9 +369,9 @@ int write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt) } if (cnt == 0) - return ERR_OK; + return FL_ERR_OK; - return ERR_OK; + return FL_ERR_OK; } /*----------------------------------------------------------------------- |