Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: rapidio: tsi721: Rename device_control

Rename the device_control callback of the TXX9 DMA driver to terminate_all
since it's all it's really doing. That will eventually be used to retrieve
slave capabilities.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Maxime Ripard and committed by
Vinod Koul
7664cfe0 be16d833

+2 -6
+2 -6
drivers/rapidio/devices/tsi721_dma.c
··· 815 815 return txd; 816 816 } 817 817 818 - static int tsi721_device_control(struct dma_chan *dchan, enum dma_ctrl_cmd cmd, 819 - unsigned long arg) 818 + static int tsi721_terminate_all(struct dma_chan *dchan) 820 819 { 821 820 struct tsi721_bdma_chan *bdma_chan = to_tsi721_chan(dchan); 822 821 struct tsi721_tx_desc *desc, *_d; ··· 823 824 LIST_HEAD(list); 824 825 825 826 dev_dbg(dchan->device->dev, "%s: Entry\n", __func__); 826 - 827 - if (cmd != DMA_TERMINATE_ALL) 828 - return -ENOSYS; 829 827 830 828 spin_lock_bh(&bdma_chan->lock); 831 829 ··· 897 901 mport->dma.device_tx_status = tsi721_tx_status; 898 902 mport->dma.device_issue_pending = tsi721_issue_pending; 899 903 mport->dma.device_prep_slave_sg = tsi721_prep_rio_sg; 900 - mport->dma.device_control = tsi721_device_control; 904 + mport->dma.device_terminate_all = tsi721_terminate_all; 901 905 902 906 err = dma_async_device_register(&mport->dma); 903 907 if (err)