diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-03-19 17:17:00 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2014-03-19 17:17:00 +0000 |
commit | d29806ffdefe2334de7bb5782ed08ade6d9712af (patch) | |
tree | dd4417d9c5cc452535ab130dc47f5ac31e19c267 /linux_spi.c | |
parent | bf8ea49c0cdf7a73cfc0df5e0eab6f8c9fbca410 (diff) | |
download | flashrom-d29806ffdefe2334de7bb5782ed08ade6d9712af.tar.gz flashrom-d29806ffdefe2334de7bb5782ed08ade6d9712af.tar.bz2 flashrom-d29806ffdefe2334de7bb5782ed08ade6d9712af.zip |
linux_spi: Fix conversion from kHz to Hz
A kilohertz is exactly 1000 hertz, not 1024 hertz.
Corresponding to flashrom svn r1768.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'linux_spi.c')
-rw-r--r-- | linux_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux_spi.c b/linux_spi.c index d12fceb2e..135af9f7e 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -68,7 +68,7 @@ int linux_spi_init(void) p = extract_programmer_param("spispeed"); if (p && strlen(p)) { - speed = (uint32_t)strtoul(p, &endp, 10) * 1024; + speed = (uint32_t)strtoul(p, &endp, 10) * 1000; if (p == endp) { msg_perr("%s: invalid clock: %s kHz\n", __func__, p); free(p); |