summaryrefslogtreecommitdiff
path: root/tools/spi
AgeCommit message (Collapse)AuthorFilesLines
2015-12-08spi: spidev_test: Fix typo in error messageFabio Estevam1-1/+1
Fix the spelling of 'output' in the error message. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-30spi: tools: move spidev_test metadataJoshua Clayton1-0/+2
Now that spidev_test and spidev_fdx have been moved, remove them from the Documentation index and move their .gitignore file. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: spidev_test: fix whitespaceJoshua Clayton1-2/+3
Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: spidev_test: check errorJoshua Clayton1-1/+5
Check the result of sscanf to verify a result was found. report and error and abort if pattern was not found. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: spidev_test: output to a fileJoshua Clayton1-3/+23
For testing of larger data transfers, output unmodified data directly to a file. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: spidev_test: accept input from a fileJoshua Clayton1-1/+47
Add input file support to facilitate testing larger data. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: spidev_test: transfer_escaped_string functionJoshua Clayton1-13/+23
Move the input_tx code into its own small function. This cleans up some variables from main() that are used only here. While we are at it, check malloc calls instead of assuming they succeed. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
2015-11-23spi: Move spi code from Documentation to toolsJoshua Clayton3-0/+480
Jon Corbet requested this code moved with the last changeset, https://lkml.org/lkml/2015/3/1/144, but the patch was not applied because it missed the Makefile. Moved spidev_test, spidev_fdx and their Makefile infrastructure. Signed-off-by: Joshua Clayton <stillcompiling@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>