drm/amd/display: Add a check-function for virtual signal type
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 12 Sep 2018 19:17:51 +0000 (15:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:01:48 +0000 (17:01 -0500)
[why]
Same functions exist for all other signal types.

[how]
Add a function that checks against virtual signal type.

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/include/signal_types.h

index 03476b142d8e4c5b34c1fb8691f23c1f5c6f0e05..f56d2891475ff1c6045568aae4e8e878cbd17cf9 100644 (file)
@@ -102,4 +102,9 @@ static inline bool dc_is_audio_capable_signal(enum signal_type signal)
                dc_is_hdmi_signal(signal));
 }
 
+static inline bool dc_is_virtual_signal(enum signal_type signal)
+{
+       return (signal == SIGNAL_TYPE_VIRTUAL);
+}
+
 #endif