[flashrom] [commit] r1760 - trunk
repository service
svn at flashrom.org
Mon Oct 21 23:49:09 CEST 2013
Author: stefanct
Date: Mon Oct 21 23:49:08 2013
New Revision: 1760
URL: http://flashrom.org/trac/flashrom/changeset/1760
Log:
programmer_delay: filter 0 usec delays.
We use 0 as delay value for some chips. Just skipping these here is the
most elegant, maintainable solution.
Signed-off-by: Urja Rannikko <urjaman at gmail.com>
Acked-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>
Modified:
trunk/flashrom.c
Modified: trunk/flashrom.c
==============================================================================
--- trunk/flashrom.c Sun Oct 20 01:35:28 2013 (r1759)
+++ trunk/flashrom.c Mon Oct 21 23:49:08 2013 (r1760)
@@ -487,7 +487,8 @@
void programmer_delay(int usecs)
{
- programmer_table[programmer].delay(usecs);
+ if (usecs > 0)
+ programmer_table[programmer].delay(usecs);
}
void map_flash_registers(struct flashctx *flash)
More information about the flashrom
mailing list