Skip to content

Commit a83d383

Browse files
committed
drm: renesas: shmobile: Rename shmob_drm_plane.plane
Rename the "plane" member of the shmob_drm_plane subclass structure to "base", to improve readability. Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Sui Jingfeng <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/73809d0a94f9075dd868cf567790d10f8ae61603.1694767209.git.geert+renesas@glider.be
1 parent 9d7bd3b commit a83d383

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/gpu/drm/renesas/shmobile/shmob_drm_plane.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "shmob_drm_regs.h"
2121

2222
struct shmob_drm_plane {
23-
struct drm_plane plane;
23+
struct drm_plane base;
2424
unsigned int index;
2525
unsigned int alpha;
2626

@@ -37,7 +37,7 @@ struct shmob_drm_plane {
3737

3838
static inline struct shmob_drm_plane *to_shmob_plane(struct drm_plane *plane)
3939
{
40-
return container_of(plane, struct shmob_drm_plane, plane);
40+
return container_of(plane, struct shmob_drm_plane, base);
4141
}
4242

4343
static void shmob_drm_plane_compute_base(struct shmob_drm_plane *splane,
@@ -64,7 +64,7 @@ static void shmob_drm_plane_compute_base(struct shmob_drm_plane *splane,
6464
static void __shmob_drm_plane_setup(struct shmob_drm_plane *splane,
6565
struct drm_framebuffer *fb)
6666
{
67-
struct shmob_drm_device *sdev = to_shmob_device(splane->plane.dev);
67+
struct shmob_drm_device *sdev = to_shmob_device(splane->base.dev);
6868
u32 format;
6969

7070
/* TODO: Support ROP3 mode */
@@ -216,7 +216,7 @@ struct drm_plane *shmob_drm_plane_create(struct shmob_drm_device *sdev,
216216
funcs = &shmob_drm_overlay_plane_funcs;
217217

218218
splane = drmm_universal_plane_alloc(&sdev->ddev,
219-
struct shmob_drm_plane, plane, 1,
219+
struct shmob_drm_plane, base, 1,
220220
funcs, formats,
221221
ARRAY_SIZE(formats), NULL, type,
222222
NULL);
@@ -226,5 +226,5 @@ struct drm_plane *shmob_drm_plane_create(struct shmob_drm_device *sdev,
226226
splane->index = index;
227227
splane->alpha = 255;
228228

229-
return &splane->plane;
229+
return &splane->base;
230230
}

0 commit comments

Comments
 (0)