History

spi: s3c64xx: pass DMA arguments in platform data

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.

Arnd Bergmann committed 11 years ago

Commit a0067db1 parent 8005c493 files · +19 −29Browse files

Showing the changes to include/linux/platform_data (1 of 3 files). Show all

Unified · Split

include/linux/platform_data/spi-s3c64xx.h+2−0
@@ -40,6 +40,8 @@ struct s3c64xx_spi_info { · 39 unmodified lines
40 int num_cs;40 int num_cs;
41 int (*cfg_gpio)(void);41 int (*cfg_gpio)(void);
42 dma_filter_fn filter;42 dma_filter_fn filter;
43 void *dma_tx;
44 void *dma_rx;
43};45};
44 46
45/**47/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t