path: root/serprog.c
diff options
authorStefan Tauner <>2014-05-02 15:41:42 +0000
committerStefan Tauner <>2014-05-02 15:41:42 +0000
commitf80419c75a344b303275e380add3b8cb750bab9d (patch)
tree124a732dd0d8c171b28649986c716af0477ca746 /serprog.c
parentb66ed84d193b8c0eddf5d946c6d2d94a8e8360ee (diff)
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 <> Acked-by: Stefan Tauner <>
Diffstat (limited to 'serprog.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/serprog.c b/serprog.c
index 35c4f32..5f26aea 100644
--- a/serprog.c
+++ b/serprog.c
@@ -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);
OpenPOWER on IntegriCloud