diff options
author | Hector Palacios <hector.palacios@digi.com> | 2010-04-30 00:02:28 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-04-30 00:40:30 +0200 |
commit | 95b1ed2ac7ffe3205afc6f5a20320fbdb984da92 (patch) | |
tree | 774300dd52221307133f6bf9fd61c398bce8d0e1 /fs/compat_binfmt_elf.c | |
parent | omap2_mcspi: small fixes of output data format (diff) | |
download | linux-95b1ed2ac7ffe3205afc6f5a20320fbdb984da92.tar.xz linux-95b1ed2ac7ffe3205afc6f5a20320fbdb984da92.zip |
spi: spidev_test gives error upon 1-byte transfer
The sample application spidev_test.c is using SPI_IOC_MESSAGE ioctl to do
an SPI transfer. This ioctl returns the number of bytes successfully
transmitted or a negative error code upon erroneous completion. The
application however is returning an error if the result of the ioclt if
the return value is 1. This makes the application to fail upon 1-byte
length transfers.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'fs/compat_binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions