summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/include/grph_object_id.h
diff options
context:
space:
mode:
authorSamson Tam <Samson.Tam@amd.com>2018-05-30 22:44:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-07-06 00:38:45 +0300
commit1eeedbcc20d64ff2ef7eb9823f85bbb1c2545064 (patch)
treea04bda4497b806276a08ddefafb324e3cbf36ede /drivers/gpu/drm/amd/display/include/grph_object_id.h
parent7f93c1de64693dc18afe55559f14cee6b5403c6c (diff)
downloadlinux-1eeedbcc20d64ff2ef7eb9823f85bbb1c2545064.tar.xz
drm/amd/display: get board layout for edid emulation
Signed-off-by: Samson Tam <Samson.Tam@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/include/grph_object_id.h')
-rw-r--r--drivers/gpu/drm/amd/display/include/grph_object_id.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/include/grph_object_id.h b/drivers/gpu/drm/amd/display/include/grph_object_id.h
index 92cc6c112ea6..33b3d755fe65 100644
--- a/drivers/gpu/drm/amd/display/include/grph_object_id.h
+++ b/drivers/gpu/drm/amd/display/include/grph_object_id.h
@@ -292,4 +292,15 @@ static inline enum engine_id dal_graphics_object_id_get_engine_id(
return (enum engine_id) id.id;
return ENGINE_ID_UNKNOWN;
}
+
+static inline bool dal_graphics_object_id_equal(
+ struct graphics_object_id id_1,
+ struct graphics_object_id id_2)
+{
+ if ((id_1.id == id_2.id) && (id_1.enum_id == id_2.enum_id) &&
+ (id_1.type == id_2.type)) {
+ return true;
+ }
+ return false;
+}
#endif