diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-10-11 11:40:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-13 06:32:20 -0400 |
commit | d26833bfce5e56017bea9f1f50838f20e18e7b7e (patch) | |
tree | 70e5ec7f3f03292e989affeff103826c6915d346 | |
parent | c3c6e231d860774037e7001ff3d536e5644fe2da (diff) |
spi/dw: use dmaengine_slave_config() API
The drivers should use dmaengine_slave_config() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index ecae30fe28af..1ca8f66ca2ea 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c | |||
@@ -143,8 +143,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change) | |||
143 | txconf.dst_addr_width = dws->dma_width; | 143 | txconf.dst_addr_width = dws->dma_width; |
144 | txconf.device_fc = false; | 144 | txconf.device_fc = false; |
145 | 145 | ||
146 | txchan->device->device_control(txchan, DMA_SLAVE_CONFIG, | 146 | dmaengine_slave_config(txchan, &txconf); |
147 | (unsigned long) &txconf); | ||
148 | 147 | ||
149 | memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl)); | 148 | memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl)); |
150 | dws->tx_sgl.dma_address = dws->tx_dma; | 149 | dws->tx_sgl.dma_address = dws->tx_dma; |
@@ -166,8 +165,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change) | |||
166 | rxconf.src_addr_width = dws->dma_width; | 165 | rxconf.src_addr_width = dws->dma_width; |
167 | rxconf.device_fc = false; | 166 | rxconf.device_fc = false; |
168 | 167 | ||
169 | rxchan->device->device_control(rxchan, DMA_SLAVE_CONFIG, | 168 | dmaengine_slave_config(txchan, &rxconf); |
170 | (unsigned long) &rxconf); | ||
171 | 169 | ||
172 | memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl)); | 170 | memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl)); |
173 | dws->rx_sgl.dma_address = dws->rx_dma; | 171 | dws->rx_sgl.dma_address = dws->rx_dma; |