summaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-06-24 01:22:03 +0000
committerPeter Stuge <peter@stuge.se>2008-06-24 01:22:03 +0000
commitda4e5f3623b7d76d23d6271007c2be61941909ba (patch)
treeb7ac3974f6709bcdfe61cd26aada58388274913f /spi.h
parentf8a49fee02cdc88fb1950c6768a16747917b5d5a (diff)
downloadflashrom-da4e5f3623b7d76d23d6271007c2be61941909ba.tar.gz
flashrom-da4e5f3623b7d76d23d6271007c2be61941909ba.tar.bz2
flashrom-da4e5f3623b7d76d23d6271007c2be61941909ba.zip
Slight restructure of SPI probe_ functions
Preparation for a probe optimization patch. This patch does not change any functionality. spi_probe_rdid was tested to still work on my M57SLI rev 2. The idea is to have error checks return error immediately when something fails, rather than having code inside an if block where the condition tests for success. This means: Less indentation, more clear what the code is checking. Corresponding to flashrom svn r272 and coreboot v2 svn r3386. Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Ward Vandewege <ward@gnu.org>
Diffstat (limited to 'spi.h')
0 files changed, 0 insertions, 0 deletions