The s3c64xx platform data already contains a pointer to the DMA filter function, but not to the associated data. This simplifies the code and makes it more generic by passing the data along with the filter function like we do for other drivers.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -40,6 +40,8 @@ struct s3c64xx_spi_info { · 39 unmodified lines | ||
| 40 | 40 | int num_cs; |
| 41 | 41 | int (*cfg_gpio)(void); |
| 42 | 42 | dma_filter_fn filter; |
| 43 | + void *dma_tx; | |
| 44 | + void *dma_rx; | |
| 43 | 45 | }; |
| 44 | 46 | |
| 45 | 47 | /** |