mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
Make delay values unsigned
There is no reason for negative delays in our use cases: - We don't need it (to work around any quirks). - sleep() (POSIX) uses an unsigned argument. - usleep() (POSIX) uses an unsigned argument. - Sleep() (Windows) uses an unsigned argument. Change all callees as well (without any complications). Corresponding to flashrom svn r1782. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
@ -870,7 +870,7 @@ static void serprog_chip_readn(const struct flashctx *flash, uint8_t * buf,
|
||||
sp_do_read_n(&(buf[addrm-addr]), addrm, lenm); // FIXME: return error
|
||||
}
|
||||
|
||||
void serprog_delay(int usecs)
|
||||
void serprog_delay(unsigned int usecs)
|
||||
{
|
||||
unsigned char buf[4];
|
||||
msg_pspew("%s usecs=%d\n", __func__, usecs);
|
||||
|
Reference in New Issue
Block a user