summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2019-12-28 10:44:40 -0700
committerJagan Teki <[email protected]>2020-01-24 23:06:47 +0530
commit9dfbc24459ccb0623c76f33b359e8fedb0e6d0a7 (patch)
tree591912b120ec5d4cb26a1755a6a2af107a0051ee /include
parent930c57ed9654f9fd53fe9bb0fc7d46d2e0317bbd (diff)
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 <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
-rw-r--r--include/flash.h7
2 files changed, 7 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h
index c35af99f02a..c3dcf6dbcc3 100644
--- a/include/common.h
+++ b/include/common.h
@@ -78,9 +78,6 @@ extern u8 __dtb_dt_spl_begin[]; /* embedded device tree blob for SPL/TPL */
*/
int arch_fixup_fdt(void *blob);
-/* common/flash.c */
-void flash_perror (int);
-
/* common/cmd_source.c */
int source (ulong addr, const char *fit_uname);
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():
*/