diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2022-03-14 17:27:37 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2022-03-15 00:16:58 +0200 |
commit | 345b7c4b86884cf413735be3edc8e28d0d494916 (patch) | |
tree | 9a5c7b2db22269b6deb9271793103ae189218419 /drivers/gpu/drm/i915/display/intel_sdvo.c | |
parent | c5ee23437cae2cffadc1a96ebd444ae2504e0408 (diff) | |
download | linux-345b7c4b86884cf413735be3edc8e28d0d494916.tar.gz linux-345b7c4b86884cf413735be3edc8e28d0d494916.tar.bz2 linux-345b7c4b86884cf413735be3edc8e28d0d494916.zip |
drm/i915: Convert fixed_mode/downclock_mode into a list
Store the fixed_mode and downclock_mode as a real list,
in preparation for exposing other supported modes as well.
v2: Init the list in intel_sdvo_connector_alloc() too
v3: Use list_first_entry_or_null() (Jani)
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220314152737.9125-1-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_sdvo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_sdvo.c b/drivers/gpu/drm/i915/display/intel_sdvo.c index 6e0a4f48d84d..158e750e5b4d 100644 --- a/drivers/gpu/drm/i915/display/intel_sdvo.c +++ b/drivers/gpu/drm/i915/display/intel_sdvo.c @@ -2747,6 +2747,8 @@ static struct intel_sdvo_connector *intel_sdvo_connector_alloc(void) __drm_atomic_helper_connector_reset(&sdvo_connector->base.base, &conn_state->base.base); + INIT_LIST_HEAD(&sdvo_connector->base.panel.fixed_modes); + return sdvo_connector; } |