Get a drm_display_mode from devicetree
int of_get_drm_display_mode(struct device_node * np, struct drm_display_mode * dmode, int index);
np
device_node with the timing specification
dmode
will be set to the return value
index
index into the list of display timings in devicetree
This function is expensive and should only be used, if only one mode is to be read from DT. To get multiple modes start with of_get_display_timings and work with that instead.
0 on success, a negative errno code when no of videomode node was found.
Jesse Barnes <[email protected]>
Intel Corporation,
Initial version
Laurent Pinchart <[email protected]>
Ideas on board SPRL,
Driver internals
Daniel Vetter <[email protected]>
Intel Corporation,
Contributions all over the place