Skip to content

Commit

Permalink
drm/exynos: rename base object of struct exynos_drm_crtc to 'base'
Browse files Browse the repository at this point in the history
'base' is more widely used name in the drm subsystem for the base object.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Gustavo Padovan authored and Inki Dae committed Jan 25, 2015
1 parent fd092d7 commit 357193c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/exynos/exynos_drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ int exynos_drm_crtc_create(struct exynos_drm_manager *manager)
goto err_plane;
}

manager->crtc = &exynos_crtc->drm_crtc;
crtc = &exynos_crtc->drm_crtc;
manager->crtc = &exynos_crtc->base;
crtc = &exynos_crtc->base;

private->crtc[manager->pipe] = crtc;

Expand Down
7 changes: 3 additions & 4 deletions drivers/gpu/drm/exynos/exynos_drm_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
#define MAX_FB_BUFFER 4
#define DEFAULT_ZPOS -1

#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc,\
drm_crtc)
#define to_exynos_crtc(x) container_of(x, struct exynos_drm_crtc, base)
#define to_exynos_plane(x) container_of(x, struct exynos_drm_plane, base)

/* This enumerates device type. */
Expand Down Expand Up @@ -229,7 +228,7 @@ enum exynos_crtc_mode {
/*
* Exynos specific crtc structure.
*
* @drm_crtc: crtc object.
* @base: crtc object.
* @manager: the manager associated with this crtc
* @pipe: a crtc index created at load() with a new crtc object creation
* and the crtc object would be set to private->crtc array
Expand All @@ -242,7 +241,7 @@ enum exynos_crtc_mode {
* @mode: store the crtc mode value
*/
struct exynos_drm_crtc {
struct drm_crtc drm_crtc;
struct drm_crtc base;
struct exynos_drm_manager *manager;
unsigned int pipe;
unsigned int dpms;
Expand Down

0 comments on commit 357193c

Please sign in to comment.