]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: clps711x: Remove duplicate code to set default bits_per_word and max speed
authorAxel Lin <axel.lin@ingics.com>
Sun, 2 Mar 2014 15:24:18 +0000 (23:24 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 13 Mar 2014 09:52:38 +0000 (09:52 +0000)
commitbed890b4310b1d3b33c88fb83e216a8182e8bbad
treec626905d85c868d1f6cd81bf4c6e20e1f912b105
parentfcba212de9bdf1016d981c355df29ab169da8eae
spi: clps711x: Remove duplicate code to set default bits_per_word and max speed

In the implementation of __spi_validate(), spi core will set transfer
bits_per_word and max speed as spi device default if it is not set for
this transfer. So we can remove the same logic in spi_clps711x_setup_xfer() and
spi_clps711x_transfer_one().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-clps711x.c