mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
tree/: Rename 'internal_delay()' to 'default_delay()'
The non-custom driver programmer delay implementation 'internal_delay()' is unrelated specifically to the 'internal' programmer. The delay implementation is simply a platform-agnostic host delay implementation. Therefore, rename to simply default_delay(). Change-Id: I5e04adf16812ceb1480992c92bca25ed80f8897a Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/68855 Reviewed-by: Alexander Goncharov <chat@joursoir.net> Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:

committed by
Edward O'Callaghan

parent
d1212796ab
commit
76f28a3fc2
6
serial.c
6
serial.c
@ -403,7 +403,7 @@ int serialport_write(const unsigned char *buf, unsigned int writecnt)
|
||||
if (!tmp) {
|
||||
msg_pdbg2("Empty write\n");
|
||||
empty_writes--;
|
||||
internal_delay(500);
|
||||
default_delay(500);
|
||||
if (empty_writes == 0) {
|
||||
msg_perr("Serial port is unresponsive!\n");
|
||||
return 1;
|
||||
@ -510,7 +510,7 @@ int serialport_read_nonblock(unsigned char *c, unsigned int readcnt, unsigned in
|
||||
ret = 0;
|
||||
break;
|
||||
}
|
||||
internal_delay(1000); /* 1ms units */
|
||||
default_delay(1000); /* 1ms units */
|
||||
}
|
||||
if (really_read != NULL)
|
||||
*really_read = rd_bytes;
|
||||
@ -596,7 +596,7 @@ int serialport_write_nonblock(const unsigned char *buf, unsigned int writecnt, u
|
||||
break;
|
||||
}
|
||||
}
|
||||
internal_delay(1000); /* 1ms units */
|
||||
default_delay(1000); /* 1ms units */
|
||||
}
|
||||
if (really_wrote != NULL)
|
||||
*really_wrote = wr_bytes;
|
||||
|
Reference in New Issue
Block a user