spi/dw: use dmaengine_slave_config() API
authorVinod Koul <vinod.koul@intel.com>
Sat, 11 Oct 2014 15:40:36 +0000 (21:10 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 13 Oct 2014 10:32:20 +0000 (12:32 +0200)
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>
drivers/spi/spi-dw-mid.c

index ecae30fe28affccab3083a2ecac1f5c130562811..1ca8f66ca2ea8e3101c75bf6099ce686d562c7ee 100644 (file)
@@ -143,8 +143,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change)
        txconf.dst_addr_width = dws->dma_width;
        txconf.device_fc = false;
 
-       txchan->device->device_control(txchan, DMA_SLAVE_CONFIG,
-                                      (unsigned long) &txconf);
+       dmaengine_slave_config(txchan, &txconf);
 
        memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl));
        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)
        rxconf.src_addr_width = dws->dma_width;
        rxconf.device_fc = false;
 
-       rxchan->device->device_control(rxchan, DMA_SLAVE_CONFIG,
-                                      (unsigned long) &rxconf);
+       dmaengine_slave_config(txchan, &rxconf);
 
        memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl));
        dws->rx_sgl.dma_address = dws->rx_dma;
This page took 0.024636 seconds and 5 git commands to generate.