drm/i915/sdvo: Make .get_modes() return the number of modes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Jan 2020 18:12:41 +0000 (20:12 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Jul 2020 13:29:07 +0000 (16:29 +0300)
commit7407ec6e5567ac3a1adf451bd5c1d4718341f104
treeb219da2c32eac3edda0f5a1674c5644c1242e7d4
parentd97571938ef34a7ab02fb3a1bd9323b825f7f7e8
drm/i915/sdvo: Make .get_modes() return the number of modes

.get_modes() is supposed to return the number of modes added to the
probed_modes list (not that anyone actually checks for anything
except zero vs. not zero). Let's do that. Also switch over to using
intel_connector_update_modes() instead of hand rolling it.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200108181242.13650-8-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/display/intel_sdvo.c