summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2018-01-26 14:43:52 +0100
committerStefan Roese <sr@denx.de>2018-01-29 07:48:59 +0100
commit9dbaebcf9f401c5dcea762e34a3dc8ed10760623 (patch)
treea8902bd5b2d15f2d045fa0935841958c191a2fe3 /common
parentc8a9a82c10e0c55f6cfa71cb174968cb54acfa5d (diff)
flash: Fix spelling of "ERR_TIMOUT"
checkpatch.pl complains about the spelling of ERR_TIMOUT. Since the error is only used in a handful of files, we rename the error to ERR_TIMEOUT. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common')
-rw-r--r--common/flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/flash.c b/common/flash.c
index 587ef60158..876677493f 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -112,7 +112,7 @@ addr2info (ulong addr)
* and no protected sectors are hit.
* Returns:
* ERR_OK 0 - OK
- * ERR_TIMOUT 1 - write timeout
+ * ERR_TIMEOUT 1 - write timeout
* ERR_NOT_ERASED 2 - Flash not erased
* ERR_PROTECTED 4 - target range includes protected sectors
* ERR_INVAL 8 - target address not in Flash memory
@@ -185,7 +185,7 @@ void flash_perror (int err)
switch (err) {
case ERR_OK:
break;
- case ERR_TIMOUT:
+ case ERR_TIMEOUT:
puts ("Timeout writing to Flash\n");
break;
case ERR_NOT_ERASED: