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_crt.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_crt.c')
-rw-r--r-- | linux-core/intel_crt.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/linux-core/intel_crt.c b/linux-core/intel_crt.c index ec4c2bf9..21a1e7d7 100644 --- a/linux-core/intel_crt.c +++ b/linux-core/intel_crt.c @@ -237,13 +237,16 @@ static const struct drm_connector_funcs intel_crt_connector_funcs = { .save = intel_crt_save, .restore = intel_crt_restore, .detect = intel_crt_detect, - .get_modes = intel_crt_get_modes, + .fill_modes = drm_helper_probe_single_connector_modes, .destroy = intel_crt_destroy, .set_property = intel_crt_set_property, - .mode_valid = intel_crt_mode_valid, - }; +static const struct drm_connector_helper_funcs intel_crt_connector_helper_funcs = { + .mode_valid = intel_crt_mode_valid, + .get_modes = intel_crt_get_modes, +}; + void intel_crt_enc_destroy(struct drm_encoder *encoder) { drm_encoder_cleanup(encoder); @@ -283,6 +286,7 @@ void intel_crt_init(struct drm_device *dev) connector->doublescan_allowed = 0; drm_encoder_helper_add(&intel_output->enc, &intel_crt_helper_funcs); + drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs); drm_sysfs_connector_add(connector); |