]> git.karo-electronics.de Git - linux-beck.git/commit
spi: spidev_test: Fix input file check when transferring file
authorMichal Vokáč <vokac.m@gmail.com>
Fri, 4 Nov 2016 10:30:03 +0000 (11:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Nov 2016 15:56:09 +0000 (09:56 -0600)
commite634b76caf830e802731e3491b24726883d1be98
tree56cd762b2391b6d5f0413488cfedbf0b0ef5078b
parent1001354ca34179f3db924eb66672442a173147dc
spi: spidev_test: Fix input file check when transferring file

Check the input file fd instead of spidev fd.
The spidev fd is supposed to be OK otherwise the transfer_file() function
would not be called at all.

Signed-off-by: Michal Vokáč <vokac.m@gmail.com>
Reviewed-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_test.c