diff options
author | Dave Airlie <airlied@redhat.com> | 2008-06-02 11:12:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-06-02 11:12:28 +1000 |
commit | 0dd000b578adec6ff101c957bce7dc9a32b76713 (patch) | |
tree | bda17b4db262f90c65a99f0a203fc892461cf880 /linux-core/intel_dvo.c | |
parent | dba95ec34315d62934ff0e493e085aa6a03cde7c (diff) |
drm/modesetting: move some connector functions to helper.
Migrated the output mode collection into the helper.
Diffstat (limited to 'linux-core/intel_dvo.c')
-rw-r--r-- | linux-core/intel_dvo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-core/intel_dvo.c b/linux-core/intel_dvo.c index 364cd659..e895d5b6 100644 --- a/linux-core/intel_dvo.c +++ b/linux-core/intel_dvo.c @@ -335,9 +335,13 @@ static const struct drm_connector_funcs intel_dvo_connector_funcs = { .save = intel_dvo_save, .restore = intel_dvo_restore, .detect = intel_dvo_detect, - .get_modes = intel_dvo_get_modes, .destroy = intel_dvo_destroy, + .fill_modes = drm_helper_probe_single_connector_modes, +}; + +static const struct drm_connector_helper_funcs intel_dvo_connector_helper_funcs = { .mode_valid = intel_dvo_mode_valid, + .get_modes = intel_dvo_get_modes, }; void intel_dvo_enc_destroy(struct drm_encoder *encoder) @@ -464,6 +468,7 @@ void intel_dvo_init(struct drm_device *dev) break; } + drm_connector_helper_add(connector, &intel_dvo_connector_helper_funcs); connector->display_info.subpixel_order = SubPixelHorizontalRGB; connector->interlace_allowed = false; connector->doublescan_allowed = false; |