The GMA500 driver is using the legacy GPIO API to fetch three optional display control GPIO lines from the SFI description used by the Medfield platform. Switch this over to use GPIO descriptors and delete the custom platform data. We create three new static locals in the tc35876x bridge code but it is hardly any worse than the I2C client static local already there: I tried first to move it to the DRM driver state container but there are workarounds for probe order in the code so I just stayed off it, as the result is unpredictable. People wanting to do a more throrugh and proper cleanup of the GMA500 driver can work on top of this, I can't solve much more since I don't have access to the hardware, I can only attempt to tidy up my GPIO corner.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -1,11 +0,0 @@ | ||
| 1 | − | |
| 2 | −#ifndef _TC35876X_H | |
| 3 | −#define _TC35876X_H | |
| 4 | − | |
| 5 | −struct tc35876x_platform_data { | |
| 6 | − int gpio_bridge_reset; | |
| 7 | − int gpio_panel_bl_en; | |
| 8 | − int gpio_panel_vadd; | |
| 9 | −}; | |
| 10 | − | |
| 11 | −#endif /* _TC35876X_H */ | |