spi: img-spfi: Implement a prepare_message() callback
authorEzequiel Garcia <ezequiel.garcia@imgtec.com>
Mon, 6 Apr 2015 21:29:04 +0000 (14:29 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 7 Apr 2015 11:17:54 +0000 (12:17 +0100)
commitb6fe39770aa63d14129bc7e061c95cfc3cb1419a
tree88c0c91755c5d0ced3259d3728a0d2a985934aff
parent6e0050ec8e909a5ed7d062552cd4fd223d286687
spi: img-spfi: Implement a prepare_message() callback

In preparation for switching to using the SPI core's CS GPIO handling,
move setup of the PORT_STATE register, which must be configured before
CS is asserted, to a prepare_message() callback.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-img-spfi.c