const struct ddi_vbt_port_info *info;
enum port port;
+ if (!ddc_pin)
+ return PORT_NONE;
+
for_each_port(port) {
info = &i915->vbt.ddi_port_info[port];
struct ddi_vbt_port_info *info = &i915->vbt.ddi_port_info[port];
enum port p;
- if (!info->alternate_ddc_pin)
- return;
-
p = get_port_by_ddc_pin(i915, info->alternate_ddc_pin);
if (p == PORT_NONE)
return;
const struct ddi_vbt_port_info *info;
enum port port;
+ if (!aux_ch)
+ return PORT_NONE;
+
for_each_port(port) {
info = &i915->vbt.ddi_port_info[port];
struct ddi_vbt_port_info *info = &i915->vbt.ddi_port_info[port];
enum port p;
- if (!info->alternate_aux_channel)
- return;
-
p = get_port_by_aux_ch(i915, info->alternate_aux_channel);
if (p == PORT_NONE)
return;