spi: sc18is602: Move checking chip_select for SC18IS602 to sc18is602_setup
authorAxel Lin <axel.lin@ingics.com>
Tue, 11 Feb 2014 12:54:17 +0000 (20:54 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 11 Feb 2014 17:02:31 +0000 (17:02 +0000)
commitc5c67e31bc1b96658169b5b553b9be42e2ca6368
tree1f9fc1dc6bee8ffa964ee1729008db7df775674e
parent589f6a90e6c5cda51ecb89799c5bff4074e9ef77
spi: sc18is602: Move checking chip_select for SC18IS602 to sc18is602_setup

So it will be checked when spi device is added onto the spi bus.
spi_add_device() calls spi_setup() which then calls spi->master->setup().
No need to check it every time sc18is602_transfer_one() is called.

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
This page took 0.023702 seconds and 5 git commands to generate.