On 14.07.2009 12:01 Uhr, Carl-Daniel Hailfinger wrote:
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.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Maybe it would be better style to use an enum instead of #defines but that's a different story.
Acked-by: Stefan Reinauer stepan@coresystems.de