spi: octeon: Convert to use bits_per_word_mask
authorAxel Lin <axel.lin@ingics.com>
Sun, 11 Aug 2013 15:09:43 +0000 (23:09 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 20 Aug 2013 10:34:08 +0000 (11:34 +0100)
commitf79cc88e4e7a673cd1b068c46cbbed97cce5f6da
tree0d9a6a88f95739ed5ab5d0196e841f989dff2478
parenta35c6bea8288d526aa0fe4180884e01945d307ab
spi: octeon: Convert to use bits_per_word_mask

Since commit 543bb25 "spi: add ability to validate xfer->bits_per_word in SPI
core", the driver can set bits_per_word_mask for the master then the SPI core
will reject transfers that attempt to use an unsupported bits_per_word value.
So we can remove octeon_spi_validate_bpw() and let SPI core handle the checking.

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