spi/atmel: let transfers through if not changing bits_per_word
authorMatthias Brugger <matthias.bgg@gmail.com>
Wed, 13 Oct 2010 15:51:02 +0000 (17:51 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 14 Oct 2010 05:07:37 +0000 (23:07 -0600)
commitb9d228f9e896df1af787b2f3467889ab0832370a
treeef40ed6c76a947a724a7a6b154ee68a01b4f5562
parent8e41b527ff2c1d7d8c9a9e8b9f53877af2892cef
spi/atmel: let transfers through if not changing bits_per_word

bits_per_word option in spi_transfer are allowed if it does not change
the csr register.

This is necessary for the driver in
drivers/staging/iio/adis16260_core.c, as it uses this option.

Signed-off-by: Matthias Brugger <mensch0815@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/atmel_spi.c