]> www.infradead.org Git - nvme.git/commit
drm/i915: Simplify aux_ch_to_digital_port()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 Feb 2024 20:32:16 +0000 (22:32 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 29 Feb 2024 18:49:48 +0000 (20:49 +0200)
commit12531c8c0a37c83493237c8191ebed2896ef0017
treee3a115e36a4dc6bcd42a175fdf82c377e6087390
parent6a8c66bf0e565c34ad0a18f820e0bb17951f7f91
drm/i915: Simplify aux_ch_to_digital_port()

Just return the correct thing from within the loop to make
the code more readable. We have no ref counts/etc. to deal
with here so no point in breaking from the loop just to return
something.

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