mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[AVR32] Use per-controller spi_board_info structures
Set up one spi_board_info array per controller and pass this to at32_add_device_spi so that it can set up any GPIO pins for chip selects based on this information. Extracted from a patch by David Brownell and adapted slightly. Signed-off-by: Haavard Skinnemoen <[email protected]>
This commit is contained in:
parent
23cebe2287
commit
41d8ca452f
3 changed files with 44 additions and 24 deletions
|
|
@ -26,7 +26,9 @@ struct eth_platform_data {
|
|||
struct platform_device *
|
||||
at32_add_device_eth(unsigned int id, struct eth_platform_data *data);
|
||||
|
||||
struct platform_device *at32_add_device_spi(unsigned int id);
|
||||
struct spi_board_info;
|
||||
struct platform_device *
|
||||
at32_add_device_spi(unsigned int id, struct spi_board_info *b, unsigned int n);
|
||||
|
||||
struct lcdc_platform_data {
|
||||
unsigned long fbmem_start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue