drm/i915/dp_link_caps: Factor out helper to get link config by index

Factor out a helper that looks up a link configuration by index.
This provides the link configuration directly, avoiding the
indirect conversion via the packed config entry.

Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260701153204.4124150-3-imre.deak@intel.com
This commit is contained in:
Imre Deak 2026-07-01 18:31:31 +03:00
commit 87b7964494