[PATCH i-g-t 1/9] lib/igt_kms: Refacror forced_connector struct
Kunal Joshi
kunal1.joshi at intel.com
Wed Apr 10 06:44:18 UTC 2024
refactor struct
Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Cc: Karthik B S <karthik.b.s at intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
lib/igt_kms.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 2a518eb8d..e3b6c607e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -91,12 +91,13 @@
#define MAX_EDID 2
#define DISPLAY_TILE_BLOCK 0x12
-static struct {
+struct forced_connector {
uint32_t connector_type;
uint32_t connector_type_id;
int idx;
int dir;
-} forced_connectors[MAX_CONNECTORS + 1];
+};
+static struct forced_connector forced_connectors[MAX_CONNECTORS + 1];
/**
* igt_kms_get_base_edid:
--
2.34.1
More information about the igt-dev
mailing list