]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sc18is602: Convert to use bits_per_word_mask
authorAxel Lin <axel.lin@ingics.com>
Fri, 17 Jan 2014 10:00:42 +0000 (18:00 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 17 Jan 2014 15:55:54 +0000 (15:55 +0000)
commit340ff7ac21c7d2e4e0c56b3269772402bf31d179
tree85e6ce1653cf249b478749a4abfd77df0e2722e1
parentcf1b0c4751e3024d53038a5f490696e047bd9971
spi: sc18is602: Convert to use bits_per_word_mask

Since commit c7217ac "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 the bits_per_word checking in sc18is602_check_transfer() and
let SPI core handle the checking.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sc18is602.c