drm/i915/icl: create function to identify combophy port
authorMahesh Kumar <[email protected]>
Thu, 4 Oct 2018 08:50:43 +0000 (14:20 +0530)
committerRodrigo Vivi <[email protected]>
Tue, 16 Oct 2018 16:00:54 +0000 (09:00 -0700)
commit176597a12d61709727d1639836e5d68a6e7c437b
treea6ca1c32a6ec2d54161a1bde8863d988ea0ec06d
parentffd7e32d95db99f1b4546661dc1864b4555c307c
drm/i915/icl: create function to identify combophy port

This patch creates a function/wrapper to check if port is combophy port
instead of explicitly comparing ports.

Changes since V1:
 - keep all intel_port_is_* helper together (Lucas)

Signed-off-by: Mahesh Kumar <[email protected]>
Cc: Madhav Chauhan <[email protected]>
Cc: Manasi Navare <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Reviewed-by: Lucas De Marchi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h