diff options
author | Simon Glass <sjg@chromium.org> | 2019-12-28 20:44:40 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-17 21:26:48 +0300 |
commit | 0ee48252b456f310225fa8dd0f3a9921cfcf3399 (patch) | |
tree | f580fa4d2d2076d00d034d79f011885e5ca0169f /include/flash.h | |
parent | 6b8d3ceaf59a6c4a2d3930aa8fa0c33e15093498 (diff) | |
download | u-boot-0ee48252b456f310225fa8dd0f3a9921cfcf3399.tar.xz |
common: Move flash_perror() to flash.h
This function belongs more in flash.h than common.h so move it.
Also remove the space before the bracket in some calls.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/flash.h')
-rw-r--r-- | include/flash.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/flash.h b/include/flash.h index 807800b524..2655c72087 100644 --- a/include/flash.h +++ b/include/flash.h @@ -117,6 +117,13 @@ extern int jedec_flash_match(flash_info_t *info, ulong base); #define CFI_CMDSET_AMD_LEGACY 0xFFF0 #endif +/** + * flash_perror() - Print a flash error + * + * @err: Error number of message to print (ERR_... as below) + */ +void flash_perror(int err); + /*----------------------------------------------------------------------- * return codes from flash_write(): */ |