The TWL4030 is actually only ever populated from the device tree, so we can just pass the right device and headphone jack GPIO name to snd_soc_jack_add_gpios() and it will pick the right GPIO right from the device tree. The platform data patch is unused (no in-tree users of the pdata method) but these can use GPIO descriptor tables rather than global GPIO numbers if they need this.
Showing the changes to include/linux/platform_data (1 of 2 files). Show all
Unified · Split
| @@ -37,9 +37,6 @@ struct omap_tw4030_pdata { · 36 unmodified lines | ||
| 37 | 37 | bool has_digimic0; |
| 38 | 38 | bool has_digimic1; |
| 39 | 39 | u8 has_linein; |
| 40 | − | |
| 41 | − /* Jack detect GPIO or <= 0 if it is not implemented */ | |
| 42 | − int jack_detect; | |
| 43 | 40 | }; |
| 44 | 41 | |
| 45 | 42 | #endif /* _OMAP_TWL4030_H_ */ |