[flashrom] [PATCH] Use a distinct return code for invalid SPI command length

Stefan Reinauer stepan at coresystems.de
Tue Jul 14 12:09:05 CEST 2009


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 at 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 at coresystems.de>




-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866





More information about the flashrom mailing list