mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 21:04:42 -04:00
drm/i915/bios: use dvi and hdmi support helpers
Improve clarity by using the helpers we have. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/3a0b52593f19a465dc0dd898db5f6bf13537d734.1654870175.git.jani.nikula@intel.com
This commit is contained in:
@@ -2471,10 +2471,10 @@ static void sanitize_device_type(struct intel_bios_encoder_data *devdata,
|
||||
if (port != PORT_A || DISPLAY_VER(i915) >= 12)
|
||||
return;
|
||||
|
||||
if (!(devdata->child.device_type & DEVICE_TYPE_TMDS_DVI_SIGNALING))
|
||||
if (!intel_bios_encoder_supports_dvi(devdata))
|
||||
return;
|
||||
|
||||
is_hdmi = !(devdata->child.device_type & DEVICE_TYPE_NOT_HDMI_OUTPUT);
|
||||
is_hdmi = intel_bios_encoder_supports_hdmi(devdata);
|
||||
|
||||
drm_dbg_kms(&i915->drm, "VBT claims port A supports DVI%s, ignoring\n",
|
||||
is_hdmi ? "/HDMI" : "");
|
||||
|
||||
Reference in New Issue
Block a user