lkml.org 
[lkml]   [2018]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/6] drm/exynos: plane: Minor cleanup
    Date
    Use available drm_plane pointer, for consistency.

    Signed-off-by: Christoph Manszewski <c.manszewski@samsung.com>
    ---
    drivers/gpu/drm/exynos/exynos_drm_plane.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
    index df0508e0e49e..cf352d980eee 100644
    --- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
    +++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
    @@ -303,7 +303,7 @@ int exynos_plane_init(struct drm_device *dev,
    BIT(DRM_MODE_BLEND_COVERAGE);
    struct drm_plane *plane = &exynos_plane->base;

    - err = drm_universal_plane_init(dev, &exynos_plane->base,
    + err = drm_universal_plane_init(dev, plane,
    1 << dev->mode_config.num_crtc,
    &exynos_plane_funcs,
    config->pixel_formats,
    @@ -314,12 +314,12 @@ int exynos_plane_init(struct drm_device *dev,
    return err;
    }

    - drm_plane_helper_add(&exynos_plane->base, &plane_helper_funcs);
    + drm_plane_helper_add(plane, &plane_helper_funcs);

    exynos_plane->index = index;
    exynos_plane->config = config;

    - exynos_plane_attach_zpos_property(&exynos_plane->base, config->zpos,
    + exynos_plane_attach_zpos_property(plane, config->zpos,
    !(config->capabilities & EXYNOS_DRM_PLANE_CAP_ZPOS));

    if (config->capabilities & EXYNOS_DRM_PLANE_CAP_PIX_BLEND)
    --
    2.7.4
    \
     
     \ /
      Last update: 2018-12-14 13:12    [W:2.944 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site