1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Use the max_rom_decode infrastructure for wbsio_spi

Use this instead of the open-coding variant that only aborts after it is too late.

Corresponding to flashrom svn r1081.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
Carl-Daniel Hailfinger
2010-07-14 19:57:52 +00:00
parent 9a795d83fb
commit ca812d40d4
3 changed files with 4 additions and 19 deletions

2
spi.c
View File

@ -80,7 +80,7 @@ const struct spi_programmer spi_programmer[] = {
.command = wbsio_spi_send_command,
.multicommand = default_spi_send_multicommand,
.read = wbsio_spi_read,
.write_256 = wbsio_spi_write_1,
.write_256 = spi_chip_write_1_new,
},
#endif
#endif