]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit00a0d1febe7d38e86953dec1cd2967ae91f6fca1
treeb219da2c32eac3edda0f5a1674c5644c1242e7d4
parent44f6026035553d1f248af46abce592f6ce4c2c1a
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