spi: qup: Get rid of using struct spi_qup_device
authorAxel Lin <axel.lin@ingics.com>
Mon, 24 Feb 2014 15:07:36 +0000 (23:07 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 25 Feb 2014 23:54:54 +0000 (08:54 +0900)
commit00cce74d081e86ee0660cbe41699cbc523a55605
tree4a8faf69010a3ea2b15c483b33f524d065dae801
parent83f091440db9ba3f739522cee0c627ecfe1cc8ef
spi: qup: Get rid of using struct spi_qup_device

Current code uses struct spi_qup_device to store spi->mode and spi->chip_select
settings. We can get these settings in spi_qup_transfer_one and spi_qup_set_cs
without using struct spi_qup_device. Refactor the code a bit to remove
spi_qup_setup(), spi_qup_cleanup(), and struct spi_qup_device.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Ivan T. Ivanov <iivanov@mm-sol.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-qup.c