diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-03-05 08:02:22 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 09:13:27 -0400 |
commit | 2ee767922e1bc7ede9ceb7aed9a14141480836a7 (patch) | |
tree | 46eb1f71530ca4e198d48852095463326ab7c339 /drivers/gpu/drm/omapdrm/omap_fbdev.c | |
parent | ac3b13189333c224e800b3421ac89536d0109b78 (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fbdev.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index d958cc813a94..b445309b0143 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c | |||
@@ -243,7 +243,7 @@ void omap_fbdev_init(struct drm_device *dev) | |||
243 | struct drm_fb_helper *helper; | 243 | struct drm_fb_helper *helper; |
244 | int ret = 0; | 244 | int ret = 0; |
245 | 245 | ||
246 | if (!priv->num_crtcs || !priv->num_connectors) | 246 | if (!priv->num_pipes) |
247 | return; | 247 | return; |
248 | 248 | ||
249 | fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); | 249 | fbdev = kzalloc(sizeof(*fbdev), GFP_KERNEL); |
@@ -256,7 +256,7 @@ void omap_fbdev_init(struct drm_device *dev) | |||
256 | 256 | ||
257 | drm_fb_helper_prepare(dev, helper, &omap_fb_helper_funcs); | 257 | drm_fb_helper_prepare(dev, helper, &omap_fb_helper_funcs); |
258 | 258 | ||
259 | ret = drm_fb_helper_init(dev, helper, priv->num_connectors); | 259 | ret = drm_fb_helper_init(dev, helper, priv->num_pipes); |
260 | if (ret) | 260 | if (ret) |
261 | goto fail; | 261 | goto fail; |
262 | 262 | ||