]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/spi/pxa2xx_spi.h
spi/pxa2xx: Don't use slave_id of dma_slave_config
[mirror_ubuntu-bionic-kernel.git] / include / linux / spi / pxa2xx_spi.h
index 82d5111cd0c26e2426998031b0a32d54cdde06dc..d5a316550177299fefaee37d6bf3e6a0e3322a8a 100644 (file)
@@ -23,6 +23,8 @@
 #define PXA2XX_CS_ASSERT (0x01)
 #define PXA2XX_CS_DEASSERT (0x02)
 
+struct dma_chan;
+
 /* device.platform_data for SSP controller devices */
 struct pxa2xx_spi_master {
        u32 clock_enable;
@@ -30,10 +32,9 @@ struct pxa2xx_spi_master {
        u8 enable_dma;
 
        /* DMA engine specific config */
-       int rx_chan_id;
-       int tx_chan_id;
-       int rx_slave_id;
-       int tx_slave_id;
+       bool (*dma_filter)(struct dma_chan *chan, void *param);
+       void *tx_param;
+       void *rx_param;
 
        /* For non-PXA arches */
        struct ssp_device ssp;