spi: make sure all transfer has proper speed set
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 4 Jan 2013 18:47:14 +0000 (00:17 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 13:11:03 +0000 (13:11 +0000)
commit059b8ffeee5b427949872bb6ed5db5ae0788054e
treec55df030036c4f8a52844645e67ed12a5eb57cde
parentc4a31f43005512b366e8bfc346e7f14c1a7a1ba7
spi: make sure all transfer has proper speed set

When spi client does the spi transfer and if it does not set
the speed for each transfer then set it as default
of spi device in spi core before calling low level transfer.

This will remove the extra check in low level driver for setting
speed.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi.c