diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-07-14 10:26:56 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-07-14 10:26:56 +0000 |
commit | 142e30fcaa1c3a63a1f0baf0b802ef888a0c250b (patch) | |
tree | c286d89dadacecee2e68b84ce5606467e9ae33e8 /spi.h | |
parent | 78e4e127129398454813d1552b516638837c423e (diff) | |
download | flashrom-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -108,5 +108,6 @@ /* Error codes */ #define SPI_INVALID_OPCODE -2 #define SPI_INVALID_ADDRESS -3 +#define SPI_INVALID_LENGTH -4 #endif /* !__SPI_H__ */ |