@@ -55,7 +55,7 @@ static const struct {
55
55
56
56
static void shmob_drm_crtc_setup_geometry (struct shmob_drm_crtc * scrtc )
57
57
{
58
- struct drm_crtc * crtc = & scrtc -> crtc ;
58
+ struct drm_crtc * crtc = & scrtc -> base ;
59
59
struct shmob_drm_device * sdev = to_shmob_device (crtc -> dev );
60
60
const struct drm_display_info * info = & sdev -> connector -> display_info ;
61
61
const struct drm_display_mode * mode = & crtc -> mode ;
@@ -114,7 +114,7 @@ static void shmob_drm_crtc_setup_geometry(struct shmob_drm_crtc *scrtc)
114
114
115
115
static void shmob_drm_crtc_start_stop (struct shmob_drm_crtc * scrtc , bool start )
116
116
{
117
- struct shmob_drm_device * sdev = to_shmob_device (scrtc -> crtc .dev );
117
+ struct shmob_drm_device * sdev = to_shmob_device (scrtc -> base .dev );
118
118
u32 value ;
119
119
120
120
value = lcdc_read (sdev , LDCNT2R );
@@ -147,7 +147,7 @@ static void shmob_drm_crtc_start_stop(struct shmob_drm_crtc *scrtc, bool start)
147
147
*/
148
148
static void shmob_drm_crtc_start (struct shmob_drm_crtc * scrtc )
149
149
{
150
- struct drm_crtc * crtc = & scrtc -> crtc ;
150
+ struct drm_crtc * crtc = & scrtc -> base ;
151
151
struct shmob_drm_device * sdev = to_shmob_device (crtc -> dev );
152
152
const struct shmob_drm_interface_data * idata = & sdev -> pdata -> iface ;
153
153
const struct shmob_drm_format_info * format ;
@@ -227,7 +227,7 @@ static void shmob_drm_crtc_start(struct shmob_drm_crtc *scrtc)
227
227
228
228
static void shmob_drm_crtc_stop (struct shmob_drm_crtc * scrtc )
229
229
{
230
- struct drm_crtc * crtc = & scrtc -> crtc ;
230
+ struct drm_crtc * crtc = & scrtc -> base ;
231
231
struct shmob_drm_device * sdev = to_shmob_device (crtc -> dev );
232
232
233
233
if (!scrtc -> started )
@@ -260,7 +260,7 @@ void shmob_drm_crtc_resume(struct shmob_drm_crtc *scrtc)
260
260
static void shmob_drm_crtc_compute_base (struct shmob_drm_crtc * scrtc ,
261
261
int x , int y )
262
262
{
263
- struct drm_crtc * crtc = & scrtc -> crtc ;
263
+ struct drm_crtc * crtc = & scrtc -> base ;
264
264
struct drm_framebuffer * fb = crtc -> primary -> fb ;
265
265
struct drm_gem_dma_object * gem ;
266
266
unsigned int bpp ;
@@ -281,7 +281,7 @@ static void shmob_drm_crtc_compute_base(struct shmob_drm_crtc *scrtc,
281
281
282
282
static void shmob_drm_crtc_update_base (struct shmob_drm_crtc * scrtc )
283
283
{
284
- struct drm_crtc * crtc = & scrtc -> crtc ;
284
+ struct drm_crtc * crtc = & scrtc -> base ;
285
285
struct shmob_drm_device * sdev = to_shmob_device (crtc -> dev );
286
286
287
287
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)
295
295
296
296
static inline struct shmob_drm_crtc * to_shmob_crtc (struct drm_crtc * crtc )
297
297
{
298
- return container_of (crtc , struct shmob_drm_crtc , crtc );
298
+ return container_of (crtc , struct shmob_drm_crtc , base );
299
299
}
300
300
301
301
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 = {
367
367
void shmob_drm_crtc_finish_page_flip (struct shmob_drm_crtc * scrtc )
368
368
{
369
369
struct drm_pending_vblank_event * event ;
370
- struct drm_device * dev = scrtc -> crtc .dev ;
370
+ struct drm_device * dev = scrtc -> base .dev ;
371
371
unsigned long flags ;
372
372
373
373
spin_lock_irqsave (& dev -> event_lock , flags );
374
374
event = scrtc -> event ;
375
375
scrtc -> event = NULL ;
376
376
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 );
379
379
}
380
380
spin_unlock_irqrestore (& dev -> event_lock , flags );
381
381
}
@@ -387,7 +387,7 @@ static int shmob_drm_crtc_page_flip(struct drm_crtc *crtc,
387
387
struct drm_modeset_acquire_ctx * ctx )
388
388
{
389
389
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 ;
391
391
unsigned long flags ;
392
392
393
393
spin_lock_irqsave (& dev -> event_lock , flags );
@@ -402,7 +402,7 @@ static int shmob_drm_crtc_page_flip(struct drm_crtc *crtc,
402
402
403
403
if (event ) {
404
404
event -> pipe = 0 ;
405
- drm_crtc_vblank_get (& scrtc -> crtc );
405
+ drm_crtc_vblank_get (& scrtc -> base );
406
406
spin_lock_irqsave (& dev -> event_lock , flags );
407
407
scrtc -> event = event ;
408
408
spin_unlock_irqrestore (& dev -> event_lock , flags );
@@ -454,7 +454,7 @@ static const struct drm_crtc_funcs crtc_funcs = {
454
454
455
455
int shmob_drm_crtc_create (struct shmob_drm_device * sdev )
456
456
{
457
- struct drm_crtc * crtc = & sdev -> crtc .crtc ;
457
+ struct drm_crtc * crtc = & sdev -> crtc .base ;
458
458
struct drm_plane * primary , * plane ;
459
459
unsigned int i ;
460
460
int ret ;
0 commit comments