dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/Documentation/spi
Hector Palacios 95b1ed2ac7 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>
2010-04-29 16:40:30 -06:00
..
.gitignore .gitignore updates 2008-10-30 11:38:45 -07:00
Makefile docsrc: build Documentation/ sources 2008-08-12 16:07:30 -07:00
butterfly [PATCH] SPI: spi_butterfly, restore lost deltas 2006-02-06 12:17:17 -08:00
pxa2xx pxa2xx_spi: fix chip_info defaults and documentation. 2008-10-16 11:21:38 -07:00
spi-lm70llp hwmon: (lm70) Code streamlining and cleanup 2009-01-07 16:37:34 +01:00
spi-summary tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
spidev documentation: move spidev_fdx example to its own source file 2008-04-28 08:58:31 -07:00
spidev_fdx.c documentation: move spidev_fdx example to its own source file 2008-04-28 08:58:31 -07:00
spidev_test.c spi: spidev_test gives error upon 1-byte transfer 2010-04-29 16:40:30 -06:00