drm/i915/bios: store child device pointer in DDI port info
authorJani Nikula <jani.nikula@intel.com>
Fri, 31 May 2019 13:14:52 +0000 (16:14 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 5 Jun 2019 12:02:51 +0000 (15:02 +0300)
commit7679f9b8f6ee393ad204c6b2e09c7ae44a15a7c7
tree00db9040e2c349a90e43b3b90984cd97c1136407
parent36a0f92020dc8794d3aa69b7fb4c5d2bf99b0099
drm/i915/bios: store child device pointer in DDI port info

This allows us to avoid iterating the child devices in some cases.

Also replace the presence bit with child device being non-NULL, and set
the child device pointer last to allow us to take advantage of it in
follow-up work.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ceccb75d637af3134d0328d67cbd6623932f94db.1559308269.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c