drm/i915/dvo: Flatten intel_dvo_init()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Nov 2022 10:55:22 +0000 (12:55 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 19 Nov 2022 09:10:22 +0000 (11:10 +0200)
commitd82b9a898d52a30adbedd158222f162489db52ac
treebbf9e0271f26e513ff1bb4cd59e61e8e1cb0b4ac
parentc584f86c6242dff11d3e8f7b1646e5470a132784
drm/i915/dvo: Flatten intel_dvo_init()

The loop over intel_dvo_devices[] makes intel_dvo_init()
an ugly mess. Pull the i2c device probe out to a separate
function so that we can get rid of the loop and flatten
the code.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221118105525.27254-7-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dvo.c