drm/omap: Group CRTC, encoder, connector and dssdev in a structure
Create an omap_drm_pipeline structure to model display pipelines, made of a CRTC, an encoder, a connector and a DSS display device. This allows grouping related parameters together instead of storing them in independent arrays and thus improves code readability. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:

committed by
Tomi Valkeinen

parent
ac3b131893
commit
2ee767922e
@@ -474,8 +474,8 @@ static void omap_crtc_mode_set_nofb(struct drm_crtc *crtc)
|
||||
* has been changed to the DRM model.
|
||||
*/
|
||||
|
||||
for (i = 0; i < priv->num_encoders; ++i) {
|
||||
struct drm_encoder *encoder = priv->encoders[i];
|
||||
for (i = 0; i < priv->num_pipes; ++i) {
|
||||
struct drm_encoder *encoder = priv->pipes[i].encoder;
|
||||
|
||||
if (encoder->crtc == crtc) {
|
||||
struct omap_dss_device *dssdev;
|
||||
|
Reference in New Issue
Block a user