Rather than including mach/iomux-mx27.h to define gpio numbers and set up the pins, the patch moves all these into machine code and has the gpio numbers passed to driver via platform_data. As the result, we can remove the mach/iomux-mx27.h inclusion from driver.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -0,0 +1,11 @@ | ||
| 1 | +#ifndef __PLATFORM_DATA_ASOC_MX27VIS_H | |
| 2 | +#define __PLATFORM_DATA_ASOC_MX27VIS_H | |
| 3 | + | |
| 4 | +struct snd_mx27vis_platform_data { | |
| 5 | + int amp_gain0_gpio; | |
| 6 | + int amp_gain1_gpio; | |
| 7 | + int amp_mutel_gpio; | |
| 8 | + int amp_muter_gpio; | |
| 9 | +}; | |
| 10 | + | |
| 11 | +#endif /* __PLATFORM_DATA_ASOC_MX27VIS_H */ | |