diff options
author | Jyri Sarha <jsarha@ti.com> | 2017-03-24 10:47:54 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-04-03 05:36:40 -0400 |
commit | 694c99cf6f5a13774bbdbf5becdbf59451b955f0 (patch) | |
tree | 34dd3e40d5a87ea0119e94ea1c4ae86c017af24a | |
parent | 273ffeaf8c90c4afc88bc48189d9e8c20106fac7 (diff) |
drm/omap: Remove the obsolete #define omap_plane _omap_plane hack
Remove the obsolete "#define omap_plane _omap_plane" hack and other
related hacks to get around the enum omap_plane colliding with struct
omap_plane.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 78a92422ede1..7abb49b7d606 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
@@ -24,12 +24,6 @@ | |||
24 | #include "omap_dmm_tiler.h" | 24 | #include "omap_dmm_tiler.h" |
25 | #include "omap_drv.h" | 25 | #include "omap_drv.h" |
26 | 26 | ||
27 | /* some hackery because omapdss has an 'enum omap_plane' (which would be | ||
28 | * better named omap_plane_id).. and compiler seems unhappy about having | ||
29 | * both a 'struct omap_plane' and 'enum omap_plane' | ||
30 | */ | ||
31 | #define omap_plane _omap_plane | ||
32 | |||
33 | /* | 27 | /* |
34 | * plane funcs | 28 | * plane funcs |
35 | */ | 29 | */ |
@@ -38,7 +32,7 @@ | |||
38 | 32 | ||
39 | struct omap_plane { | 33 | struct omap_plane { |
40 | struct drm_plane base; | 34 | struct drm_plane base; |
41 | int id; /* TODO rename omap_plane -> omap_plane_id in omapdss so I can use the enum */ | 35 | enum omap_plane_id id; |
42 | const char *name; | 36 | const char *name; |
43 | 37 | ||
44 | uint32_t nformats; | 38 | uint32_t nformats; |