History

ASoC: ti: Convert TWL4030 to use GPIO descriptors

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.

Linus Walleij committed 3 years ago

Commit 1b8a6291 parent 22041ed2 files · +8 −15Browse files

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

Unified · Split

include/linux/platform_data/omap-twl4030.h+0−3
@@ -37,9 +37,6 @@ struct omap_tw4030_pdata { · 36 unmodified lines
37 bool has_digimic0;37 bool has_digimic0;
38 bool has_digimic1;38 bool has_digimic1;
39 u8 has_linein;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#endif /* _OMAP_TWL4030_H_ */42#endif /* _OMAP_TWL4030_H_ */

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