]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Simplify intel_joiner_num_pipes and its usage
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 16 Sep 2024 10:28:33 +0000 (15:58 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 18 Sep 2024 06:42:48 +0000 (12:12 +0530)
commiteb920fbbb4c84ffe60124412754491f397640d1f
tree1bded1fb66ada621a16af49b81dd8dfc4c331d42
parent0b7e9ddb9ab2965025a809b3299394e3151ed75f
drm/i915/display: Simplify intel_joiner_num_pipes and its usage

Currently intel_joiner_num_pipes is used to get num of pipes wrt num of
pipes joined. Simplify this by returning 1 when no joiner is used and
update the checks for no joiner case.

v2: Rename the function to intel_crtc_num_joined_pipes and use helper
intel_crtc_joined_pipe_mask. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240916102836.2149012-2-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display.c