From 0ee48252b456f310225fa8dd0f3a9921cfcf3399 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:44:40 -0700 Subject: 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 --- include/flash.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/flash.h') diff --git a/include/flash.h b/include/flash.h index 807800b524e..2655c72087f 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(): */ -- cgit v1.2.3