diff options
| -rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 10 | ||||
| -rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 5 | ||||
| -rw-r--r-- | drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 5 |
3 files changed, 11 insertions, 9 deletions
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 53bfa56ca47a..53489859997b 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | |||
| @@ -140,13 +140,13 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) | |||
| 140 | cfg); | 140 | cfg); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | static bool atmel_hlcdc_crtc_mode_fixup(struct drm_crtc *c, | 143 | static enum drm_mode_status |
| 144 | const struct drm_display_mode *mode, | 144 | atmel_hlcdc_crtc_mode_valid(struct drm_crtc *c, |
| 145 | struct drm_display_mode *adjusted_mode) | 145 | const struct drm_display_mode *mode) |
| 146 | { | 146 | { |
| 147 | struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); | 147 | struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); |
| 148 | 148 | ||
| 149 | return atmel_hlcdc_dc_mode_valid(crtc->dc, adjusted_mode) == MODE_OK; | 149 | return atmel_hlcdc_dc_mode_valid(crtc->dc, mode); |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | static void atmel_hlcdc_crtc_disable(struct drm_crtc *c) | 152 | static void atmel_hlcdc_crtc_disable(struct drm_crtc *c) |
| @@ -315,7 +315,7 @@ static void atmel_hlcdc_crtc_atomic_flush(struct drm_crtc *crtc, | |||
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | static const struct drm_crtc_helper_funcs lcdc_crtc_helper_funcs = { | 317 | static const struct drm_crtc_helper_funcs lcdc_crtc_helper_funcs = { |
| 318 | .mode_fixup = atmel_hlcdc_crtc_mode_fixup, | 318 | .mode_valid = atmel_hlcdc_crtc_mode_valid, |
| 319 | .mode_set = drm_helper_crtc_mode_set, | 319 | .mode_set = drm_helper_crtc_mode_set, |
| 320 | .mode_set_nofb = atmel_hlcdc_crtc_mode_set_nofb, | 320 | .mode_set_nofb = atmel_hlcdc_crtc_mode_set_nofb, |
| 321 | .mode_set_base = drm_helper_crtc_mode_set_base, | 321 | .mode_set_base = drm_helper_crtc_mode_set_base, |
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 288dd4b70126..30dbffdb45a3 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | |||
| @@ -375,8 +375,9 @@ static const struct of_device_id atmel_hlcdc_of_match[] = { | |||
| 375 | }; | 375 | }; |
| 376 | MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match); | 376 | MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match); |
| 377 | 377 | ||
| 378 | int atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc, | 378 | enum drm_mode_status |
| 379 | struct drm_display_mode *mode) | 379 | atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc, |
| 380 | const struct drm_display_mode *mode) | ||
| 380 | { | 381 | { |
| 381 | int vfront_porch = mode->vsync_start - mode->vdisplay; | 382 | int vfront_porch = mode->vsync_start - mode->vdisplay; |
| 382 | int vback_porch = mode->vtotal - mode->vsync_end; | 383 | int vback_porch = mode->vtotal - mode->vsync_end; |
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h index 433641b6e23b..b0596a84c1b8 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | |||
| @@ -422,8 +422,9 @@ static inline void atmel_hlcdc_layer_init(struct atmel_hlcdc_layer *layer, | |||
| 422 | layer->regmap = regmap; | 422 | layer->regmap = regmap; |
| 423 | } | 423 | } |
| 424 | 424 | ||
| 425 | int atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc, | 425 | enum drm_mode_status |
| 426 | struct drm_display_mode *mode); | 426 | atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc, |
| 427 | const struct drm_display_mode *mode); | ||
| 427 | 428 | ||
| 428 | int atmel_hlcdc_create_planes(struct drm_device *dev); | 429 | int atmel_hlcdc_create_planes(struct drm_device *dev); |
| 429 | void atmel_hlcdc_plane_irq(struct atmel_hlcdc_plane *plane); | 430 | void atmel_hlcdc_plane_irq(struct atmel_hlcdc_plane *plane); |
