coreboot-kgpe-d16/util
Peter Stuge a4793182e8 flashrom: Trivial SPI cleanups
While writing a new SPI driver I fixed some things in the SPI code:
All calls to spi_command() had unneccessary #define duplications, and in some
cases the read count define could theoretically become harmful because NULL was
passed for the read buffer. Avoid a crash, should someone change the #defines.

I also noticed that the only caller of spi_page_program() was the it87 driver,
and spi_page_program() could only call back into the it87 driver. Removed the
function for easier-to-follow code and made it8716f_spi_page_program() static.
The ichspi driver's static page functions are already static.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3418 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-07-07 06:38:51 +00:00
..
ADLO Changes Makefile generation so that recursive "make" calls read 2008-06-08 23:05:24 +00:00
abuild abuild: fix gnu getopt detection (trivial) 2008-05-28 08:40:23 +00:00
analysis Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
buildrom Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
dump_mmcr small ts5300 update, fix endian problem in dummmcr. 2006-03-18 00:10:29 +00:00
flashrom flashrom: Trivial SPI cleanups 2008-07-07 06:38:51 +00:00
getpir Make the getpir output compile (Closes #70). 2008-03-25 19:43:01 +00:00
inteltool as per Peter's suggestion. clean binary in make clean 2008-06-22 17:15:03 +00:00
k8resdump K8 resource dump utility from Rudolf Marek 2007-10-30 01:12:20 +00:00
lbtdump Fix a typo in lbtdump output (trivial). 2008-05-07 19:21:18 +00:00
mkelfImage Importing mkelfimage from 2008-02-15 18:16:06 +00:00
mptable fix typo 2008-03-15 16:30:39 +00:00
newconfig Changes Makefile generation so that recursive "make" calls read 2008-06-08 23:05:24 +00:00
nrv2b - Minor mod to reset16.inc to work with newer binutils hopefully this works with older ones... 2003-06-17 08:42:17 +00:00
nvramtool Rename lxbios to nvramtool, step 3 (rename directory). 2008-03-01 19:09:01 +00:00
optionlist Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
options rename linuxbios_* files, too. 2008-01-18 16:16:45 +00:00
resetcf epia-m support 2004-10-06 17:33:54 +00:00
romcc Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
superiotool Add dump support for Winbond (NSC) PC87427. Dumps available from real hardware. 2008-06-07 11:36:30 +00:00
vgabios Adds support for understanding bus:dev.func to the -d option of testbios 2006-04-23 19:16:09 +00:00