[PATCH i-g-t 4/4] lib/xe_query: Fix switch indentation

Dominik Grzegorzek dominik.grzegorzek at intel.com
Wed Dec 11 11:40:44 UTC 2024


Correct switch indentation so it follows kernel guidelines.

Signed-off-by: Dominik Grzegorzek <dominik.grzegorzek at intel.com>
---
 lib/xe/xe_query.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/lib/xe/xe_query.c b/lib/xe/xe_query.c
index 6a7b08006..b9e6cf045 100644
--- a/lib/xe/xe_query.c
+++ b/lib/xe/xe_query.c
@@ -225,19 +225,19 @@ static uint32_t __mem_default_alignment(struct drm_xe_query_mem_regions *mem_reg
 const char *xe_engine_class_string(uint32_t engine_class)
 {
 	switch (engine_class) {
-		case DRM_XE_ENGINE_CLASS_RENDER:
-			return "DRM_XE_ENGINE_CLASS_RENDER";
-		case DRM_XE_ENGINE_CLASS_COPY:
-			return "DRM_XE_ENGINE_CLASS_COPY";
-		case DRM_XE_ENGINE_CLASS_VIDEO_DECODE:
-			return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE";
-		case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE:
-			return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE";
-		case DRM_XE_ENGINE_CLASS_COMPUTE:
-			return "DRM_XE_ENGINE_CLASS_COMPUTE";
-		default:
-			igt_warn("Engine class 0x%x unknown\n", engine_class);
-			return "unknown engine class";
+	case DRM_XE_ENGINE_CLASS_RENDER:
+		return "DRM_XE_ENGINE_CLASS_RENDER";
+	case DRM_XE_ENGINE_CLASS_COPY:
+		return "DRM_XE_ENGINE_CLASS_COPY";
+	case DRM_XE_ENGINE_CLASS_VIDEO_DECODE:
+		return "DRM_XE_ENGINE_CLASS_VIDEO_DECODE";
+	case DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE:
+		return "DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE";
+	case DRM_XE_ENGINE_CLASS_COMPUTE:
+		return "DRM_XE_ENGINE_CLASS_COMPUTE";
+	default:
+		igt_warn("Engine class 0x%x unknown\n", engine_class);
+		return "unknown engine class";
 	}
 }
 
-- 
2.34.1



More information about the igt-dev mailing list