drm/i915/bios: use ddc pin directly from child data
authorJani Nikula <jani.nikula@intel.com>
Wed, 1 Sep 2021 16:10:04 +0000 (19:10 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 7 Sep 2021 07:29:21 +0000 (10:29 +0300)
commitdab8477b032b31d07cf6ed5a07d47709c265b4bc
treeb379475d595c3784eb7bc401db93199d6046a3c5
parent9e1dbc1a84bdf1c0d4a03737c3e8007c4c43910a
drm/i915/bios: use ddc pin directly from child data

Avoid extra caching of the data. This is slightly more subtle than one
would think. For one thing, we explicitly ignore 0 value in child device
ddc pin; this is specified as N/A and does not warrant a warning. For
another, we start looking for ddc pin collisions in sanitize using
unmapped pin numbering.

v2: Check !devdata in intel_bios_alternate_ddc_pin()

Cc: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e1dbf7cbdd2191439e760ab9098242dcec5fbb2e.1630512523.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/i915_drv.h