summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-02 15:41:42 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-02 15:41:42 +0000
commit659b447c4a60f26e0cd0f100c64041819e3fbc22 (patch)
tree124a732dd0d8c171b28649986c716af0477ca746 /flash.h
parent91e19afc759b6194ece002a9a84cf6836ed2d535 (diff)
downloadflashrom-659b447c4a60f26e0cd0f100c64041819e3fbc22.zip
flashrom-659b447c4a60f26e0cd0f100c64041819e3fbc22.tar.gz
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>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index e320ced..bfb0a49 100644
--- a/flash.h
+++ b/flash.h
@@ -56,7 +56,7 @@ typedef uint32_t chipsize_t; /* Able to store the number of bytes of any support
int register_shutdown(int (*function) (void *data), void *data);
void *programmer_map_flash_region(const char *descr, uintptr_t phys_addr, size_t len);
void programmer_unmap_flash_region(void *virt_addr, size_t len);
-void programmer_delay(int usecs);
+void programmer_delay(unsigned int usecs);
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
OpenPOWER on IntegriCloud