Skip to content

Commit 5195532

Browse files
committed
drm: renesas: shmobile: Rename shmob_drm_crtc.crtc
Rename the "crtc" member of the shmob_drm_crtc 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/b42a32082d25bde6db7a57d8dc0d9f45820f6716.1694767209.git.geert+renesas@glider.be
1 parent c228823 commit 5195532

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static const struct {
5555

5656
static void shmob_drm_crtc_setup_geometry(struct shmob_drm_crtc *scrtc)
5757
{
58-
struct drm_crtc *crtc = &scrtc->crtc;
58+
struct drm_crtc *crtc = &scrtc->base;
5959
struct shmob_drm_device *sdev = to_shmob_device(crtc->dev);
6060
const struct drm_display_info *info = &sdev->connector->display_info;
6161
const struct drm_display_mode *mode = &crtc->mode;
@@ -114,7 +114,7 @@ static void shmob_drm_crtc_setup_geometry(struct shmob_drm_crtc *scrtc)
114114

115115
static void shmob_drm_crtc_start_stop(struct shmob_drm_crtc *scrtc, bool start)
116116
{
117-
struct shmob_drm_device *sdev = to_shmob_device(scrtc->crtc.dev);
117+
struct shmob_drm_device *sdev = to_shmob_device(scrtc->base.dev);
118118
u32 value;
119119

120120
value = lcdc_read(sdev, LDCNT2R);
@@ -147,7 +147,7 @@ static void shmob_drm_crtc_start_stop(struct shmob_drm_crtc *scrtc, bool start)
147147
*/
148148
static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
149149
{
150-
struct drm_crtc *crtc = &scrtc->crtc;
150+
struct drm_crtc *crtc = &scrtc->base;
151151
struct shmob_drm_device *sdev = to_shmob_device(crtc->dev);
152152
const struct shmob_drm_interface_data *idata = &sdev->pdata->iface;
153153
const struct shmob_drm_format_info *format;
@@ -227,7 +227,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
227227

228228
static void shmob_drm_crtc_stop(struct shmob_drm_crtc *scrtc)
229229
{
230-
struct drm_crtc *crtc = &scrtc->crtc;
230+
struct drm_crtc *crtc = &scrtc->base;
231231
struct shmob_drm_device *sdev = to_shmob_device(crtc->dev);
232232

233233
if (!scrtc->started)
@@ -260,7 +260,7 @@ void shmob_drm_crtc_resume(struct shmob_drm_crtc *scrtc)
260260
static void shmob_drm_crtc_compute_base(struct shmob_drm_crtc *scrtc,
261261
int x, int y)
262262
{
263-
struct drm_crtc *crtc = &scrtc->crtc;
263+
struct drm_crtc *crtc = &scrtc->base;
264264
struct drm_framebuffer *fb = crtc->primary->fb;
265265
struct drm_gem_dma_object *gem;
266266
unsigned int bpp;
@@ -281,7 +281,7 @@ static void shmob_drm_crtc_compute_base(struct shmob_drm_crtc *scrtc,
281281

282282
static void shmob_drm_crtc_update_base(struct shmob_drm_crtc *scrtc)
283283
{
284-
struct drm_crtc *crtc = &scrtc->crtc;
284+
struct drm_crtc *crtc = &scrtc->base;
285285
struct shmob_drm_device *sdev = to_shmob_device(crtc->dev);
286286

287287
shmob_drm_crtc_compute_base(scrtc, crtc->x, crtc->y);
@@ -295,7 +295,7 @@ static void shmob_drm_crtc_update_base(struct shmob_drm_crtc *scrtc)
295295

296296
static inline struct shmob_drm_crtc *to_shmob_crtc(struct drm_crtc *crtc)
297297
{
298-
return container_of(crtc, struct shmob_drm_crtc, crtc);
298+
return container_of(crtc, struct shmob_drm_crtc, base);
299299
}
300300

301301
static void shmob_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
@@ -367,15 +367,15 @@ static const struct drm_crtc_helper_funcs crtc_helper_funcs = {
367367
void shmob_drm_crtc_finish_page_flip(struct shmob_drm_crtc *scrtc)
368368
{
369369
struct drm_pending_vblank_event *event;
370-
struct drm_device *dev = scrtc->crtc.dev;
370+
struct drm_device *dev = scrtc->base.dev;
371371
unsigned long flags;
372372

373373
spin_lock_irqsave(&dev->event_lock, flags);
374374
event = scrtc->event;
375375
scrtc->event = NULL;
376376
if (event) {
377-
drm_crtc_send_vblank_event(&scrtc->crtc, event);
378-
drm_crtc_vblank_put(&scrtc->crtc);
377+
drm_crtc_send_vblank_event(&scrtc->base, event);
378+
drm_crtc_vblank_put(&scrtc->base);
379379
}
380380
spin_unlock_irqrestore(&dev->event_lock, flags);
381381
}
@@ -387,7 +387,7 @@ static int shmob_drm_crtc_page_flip(struct drm_crtc *crtc,
387387
struct drm_modeset_acquire_ctx *ctx)
388388
{
389389
struct shmob_drm_crtc *scrtc = to_shmob_crtc(crtc);
390-
struct drm_device *dev = scrtc->crtc.dev;
390+
struct drm_device *dev = scrtc->base.dev;
391391
unsigned long flags;
392392

393393
spin_lock_irqsave(&dev->event_lock, flags);
@@ -402,7 +402,7 @@ static int shmob_drm_crtc_page_flip(struct drm_crtc *crtc,
402402

403403
if (event) {
404404
event->pipe = 0;
405-
drm_crtc_vblank_get(&scrtc->crtc);
405+
drm_crtc_vblank_get(&scrtc->base);
406406
spin_lock_irqsave(&dev->event_lock, flags);
407407
scrtc->event = event;
408408
spin_unlock_irqrestore(&dev->event_lock, flags);
@@ -454,7 +454,7 @@ static const struct drm_crtc_funcs crtc_funcs = {
454454

455455
int shmob_drm_crtc_create(struct shmob_drm_device *sdev)
456456
{
457-
struct drm_crtc *crtc = &sdev->crtc.crtc;
457+
struct drm_crtc *crtc = &sdev->crtc.base;
458458
struct drm_plane *primary, *plane;
459459
unsigned int i;
460460
int ret;

drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct shmob_drm_device;
2121
struct shmob_drm_format_info;
2222

2323
struct shmob_drm_crtc {
24-
struct drm_crtc crtc;
24+
struct drm_crtc base;
2525

2626
struct drm_pending_vblank_event *event;
2727
int dpms;

0 commit comments

Comments
 (0)