1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Use a distinct return code for SPI commands with unsupported/invalid length

Some drivers support only a few combinations of read/write length and
return error otherwise. Having a distinct return code for this error
means we can handle it in upper layers.

Corresponding to flashrom svn r653.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Carl-Daniel Hailfinger
2009-07-14 10:26:56 +00:00
parent 78e4e12712
commit 142e30fcaa
6 changed files with 23 additions and 11 deletions

1
spi.h
View File

@ -108,5 +108,6 @@
/* Error codes */
#define SPI_INVALID_OPCODE -2
#define SPI_INVALID_ADDRESS -3
#define SPI_INVALID_LENGTH -4
#endif /* !__SPI_H__ */