From 142e30fcaa1c3a63a1f0baf0b802ef888a0c250b Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Tue, 14 Jul 2009 10:26:56 +0000 Subject: 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 Acked-by: Stefan Reinauer --- spi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'spi.h') diff --git a/spi.h b/spi.h index aa80c43..3050ccf 100644 --- a/spi.h +++ b/spi.h @@ -108,5 +108,6 @@ /* Error codes */ #define SPI_INVALID_OPCODE -2 #define SPI_INVALID_ADDRESS -3 +#define SPI_INVALID_LENGTH -4 #endif /* !__SPI_H__ */ -- cgit v1.1