diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-04-20 03:19:04 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-04-27 02:58:05 -0400 |
commit | cc4e44d5156933272df02d27f99322100e1edd1d (patch) | |
tree | 672ce490e5a73bb168ca220ca9a257f631747402 /drivers/gpu/drm/qxl/qxl_display.c | |
parent | a6d3c4d79822658e7f2f9c4b73237fe2b057ed67 (diff) |
qxl: drop dummy functions
These days drm core checks function pointers everywhere before calling
them. So we can drop a bunch of dummy functions now.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180420071904.24276-5-kraxel@redhat.com
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_display.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 58959733ae16..b8cda9449241 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c | |||
@@ -456,13 +456,6 @@ qxl_framebuffer_init(struct drm_device *dev, | |||
456 | return 0; | 456 | return 0; |
457 | } | 457 | } |
458 | 458 | ||
459 | static bool qxl_crtc_mode_fixup(struct drm_crtc *crtc, | ||
460 | const struct drm_display_mode *mode, | ||
461 | struct drm_display_mode *adjusted_mode) | ||
462 | { | ||
463 | return true; | ||
464 | } | ||
465 | |||
466 | static void qxl_crtc_atomic_enable(struct drm_crtc *crtc, | 459 | static void qxl_crtc_atomic_enable(struct drm_crtc *crtc, |
467 | struct drm_crtc_state *old_state) | 460 | struct drm_crtc_state *old_state) |
468 | { | 461 | { |
@@ -476,7 +469,6 @@ static void qxl_crtc_atomic_disable(struct drm_crtc *crtc, | |||
476 | } | 469 | } |
477 | 470 | ||
478 | static const struct drm_crtc_helper_funcs qxl_crtc_helper_funcs = { | 471 | static const struct drm_crtc_helper_funcs qxl_crtc_helper_funcs = { |
479 | .mode_fixup = qxl_crtc_mode_fixup, | ||
480 | .atomic_flush = qxl_crtc_atomic_flush, | 472 | .atomic_flush = qxl_crtc_atomic_flush, |
481 | .atomic_enable = qxl_crtc_atomic_enable, | 473 | .atomic_enable = qxl_crtc_atomic_enable, |
482 | .atomic_disable = qxl_crtc_atomic_disable, | 474 | .atomic_disable = qxl_crtc_atomic_disable, |
@@ -620,12 +612,6 @@ static void qxl_primary_atomic_disable(struct drm_plane *plane, | |||
620 | } | 612 | } |
621 | } | 613 | } |
622 | 614 | ||
623 | static int qxl_plane_atomic_check(struct drm_plane *plane, | ||
624 | struct drm_plane_state *state) | ||
625 | { | ||
626 | return 0; | ||
627 | } | ||
628 | |||
629 | static void qxl_cursor_atomic_update(struct drm_plane *plane, | 615 | static void qxl_cursor_atomic_update(struct drm_plane *plane, |
630 | struct drm_plane_state *old_state) | 616 | struct drm_plane_state *old_state) |
631 | { | 617 | { |
@@ -831,7 +817,6 @@ static const uint32_t qxl_cursor_plane_formats[] = { | |||
831 | }; | 817 | }; |
832 | 818 | ||
833 | static const struct drm_plane_helper_funcs qxl_cursor_helper_funcs = { | 819 | static const struct drm_plane_helper_funcs qxl_cursor_helper_funcs = { |
834 | .atomic_check = qxl_plane_atomic_check, | ||
835 | .atomic_update = qxl_cursor_atomic_update, | 820 | .atomic_update = qxl_cursor_atomic_update, |
836 | .atomic_disable = qxl_cursor_atomic_disable, | 821 | .atomic_disable = qxl_cursor_atomic_disable, |
837 | .prepare_fb = qxl_plane_prepare_fb, | 822 | .prepare_fb = qxl_plane_prepare_fb, |
@@ -956,28 +941,6 @@ free_mem: | |||
956 | return r; | 941 | return r; |
957 | } | 942 | } |
958 | 943 | ||
959 | static void qxl_enc_dpms(struct drm_encoder *encoder, int mode) | ||
960 | { | ||
961 | DRM_DEBUG("\n"); | ||
962 | } | ||
963 | |||
964 | static void qxl_enc_prepare(struct drm_encoder *encoder) | ||
965 | { | ||
966 | DRM_DEBUG("\n"); | ||
967 | } | ||
968 | |||
969 | static void qxl_enc_commit(struct drm_encoder *encoder) | ||
970 | { | ||
971 | DRM_DEBUG("\n"); | ||
972 | } | ||
973 | |||
974 | static void qxl_enc_mode_set(struct drm_encoder *encoder, | ||
975 | struct drm_display_mode *mode, | ||
976 | struct drm_display_mode *adjusted_mode) | ||
977 | { | ||
978 | DRM_DEBUG("\n"); | ||
979 | } | ||
980 | |||
981 | static int qxl_conn_get_modes(struct drm_connector *connector) | 944 | static int qxl_conn_get_modes(struct drm_connector *connector) |
982 | { | 945 | { |
983 | unsigned pwidth = 1024; | 946 | unsigned pwidth = 1024; |
@@ -1023,10 +986,6 @@ static struct drm_encoder *qxl_best_encoder(struct drm_connector *connector) | |||
1023 | 986 | ||
1024 | 987 | ||
1025 | static const struct drm_encoder_helper_funcs qxl_enc_helper_funcs = { | 988 | static const struct drm_encoder_helper_funcs qxl_enc_helper_funcs = { |
1026 | .dpms = qxl_enc_dpms, | ||
1027 | .prepare = qxl_enc_prepare, | ||
1028 | .mode_set = qxl_enc_mode_set, | ||
1029 | .commit = qxl_enc_commit, | ||
1030 | }; | 989 | }; |
1031 | 990 | ||
1032 | static const struct drm_connector_helper_funcs qxl_connector_helper_funcs = { | 991 | static const struct drm_connector_helper_funcs qxl_connector_helper_funcs = { |
@@ -1059,14 +1018,6 @@ static enum drm_connector_status qxl_conn_detect( | |||
1059 | : connector_status_disconnected; | 1018 | : connector_status_disconnected; |
1060 | } | 1019 | } |
1061 | 1020 | ||
1062 | static int qxl_conn_set_property(struct drm_connector *connector, | ||
1063 | struct drm_property *property, | ||
1064 | uint64_t value) | ||
1065 | { | ||
1066 | DRM_DEBUG("\n"); | ||
1067 | return 0; | ||
1068 | } | ||
1069 | |||
1070 | static void qxl_conn_destroy(struct drm_connector *connector) | 1021 | static void qxl_conn_destroy(struct drm_connector *connector) |
1071 | { | 1022 | { |
1072 | struct qxl_output *qxl_output = | 1023 | struct qxl_output *qxl_output = |
@@ -1081,7 +1032,6 @@ static const struct drm_connector_funcs qxl_connector_funcs = { | |||
1081 | .dpms = drm_helper_connector_dpms, | 1032 | .dpms = drm_helper_connector_dpms, |
1082 | .detect = qxl_conn_detect, | 1033 | .detect = qxl_conn_detect, |
1083 | .fill_modes = drm_helper_probe_single_connector_modes, | 1034 | .fill_modes = drm_helper_probe_single_connector_modes, |
1084 | .set_property = qxl_conn_set_property, | ||
1085 | .destroy = qxl_conn_destroy, | 1035 | .destroy = qxl_conn_destroy, |
1086 | .reset = drm_atomic_helper_connector_reset, | 1036 | .reset = drm_atomic_helper_connector_reset, |
1087 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, | 1037 | .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, |