summaryrefslogtreecommitdiffstats
path: root/spi.h
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-14 10:26:56 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-07-14 10:26:56 +0000
commit142e30fcaa1c3a63a1f0baf0b802ef888a0c250b (patch)
treec286d89dadacecee2e68b84ce5606467e9ae33e8 /spi.h
parent78e4e127129398454813d1552b516638837c423e (diff)
downloadflashrom-142e30fcaa1c3a63a1f0baf0b802ef888a0c250b.tar.gz
flashrom-142e30fcaa1c3a63a1f0baf0b802ef888a0c250b.tar.bz2
flashrom-142e30fcaa1c3a63a1f0baf0b802ef888a0c250b.zip
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>
Diffstat (limited to 'spi.h')
-rw-r--r--spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/spi.h b/spi.h
index aa80c43ea..3050ccf9c 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__ */