|
11 | 11 | #include <drm/drm_atomic.h> |
12 | 12 | #include <drm/drm_atomic_state_helper.h> |
13 | 13 | #include <drm/drm_connector.h> |
| 14 | +#include <drm/drm_crtc_helper.h> |
14 | 15 | #include <drm/drm_damage_helper.h> |
15 | 16 | #include <drm/drm_device.h> |
16 | 17 | #include <drm/drm_drv.h> |
@@ -545,25 +546,14 @@ static enum drm_mode_status simpledrm_crtc_helper_mode_valid(struct drm_crtc *cr |
545 | 546 | return drm_crtc_helper_mode_valid_fixed(crtc, mode, &sdev->mode); |
546 | 547 | } |
547 | 548 |
|
548 | | -static int simpledrm_crtc_helper_atomic_check(struct drm_crtc *crtc, |
549 | | - struct drm_atomic_state *new_state) |
550 | | -{ |
551 | | - struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); |
552 | | - |
553 | | - if (!new_crtc_state->enable) |
554 | | - return 0; |
555 | | - |
556 | | - return drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); |
557 | | -} |
558 | | - |
559 | 549 | /* |
560 | 550 | * The CRTC is always enabled. Screen updates are performed by |
561 | 551 | * the primary plane's atomic_update function. Disabling clears |
562 | 552 | * the screen in the primary plane's atomic_disable function. |
563 | 553 | */ |
564 | 554 | static const struct drm_crtc_helper_funcs simpledrm_crtc_helper_funcs = { |
565 | 555 | .mode_valid = simpledrm_crtc_helper_mode_valid, |
566 | | - .atomic_check = simpledrm_crtc_helper_atomic_check, |
| 556 | + .atomic_check = drm_crtc_helper_atomic_check, |
567 | 557 | }; |
568 | 558 |
|
569 | 559 | static const struct drm_crtc_funcs simpledrm_crtc_funcs = { |
|
0 commit comments