summaryrefslogtreecommitdiff
path: root/util/flashrom/sst28sf040.c
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-07-07 06:38:51 +0000
committerPeter Stuge <peter@stuge.se>2008-07-07 06:38:51 +0000
commita4793182e892c71660e24dbe12198a653f7ec1e6 (patch)
treec3e5bb7b62a251f94b1da1b0c9fd623c8286a013 /util/flashrom/sst28sf040.c
parent5dc95de5e64638d5b95d7fd1fb7ef87887bfdbdc (diff)
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
Diffstat (limited to 'util/flashrom/sst28sf040.c')
0 files changed, 0 insertions, 0 deletions