tests/kmstest: support exynos

Add exynos to list of kmstest supported modules.

Signed-off-by: Hyungwon Hwang <human.hwang at samsung.com>
---
 libkms/internal.h    |    2 ++
 libkms/linux.c       |    4 ++++
 tests/kmstest/main.c |    1 +
 3 files changed, 7 insertions(+)

diff --git a/libkms/internal.h b/libkms/internal.h
index 5e2501e..f831b57 100644
--- a/libkms/internal.h
+++ b/libkms/internal.h
@@ -74,4 +74,6 @@ int nouveau_create(int fd, struct kms_driver **out);

 int radeon_create(int fd, struct kms_driver **out);

+int exynos_create(int fd, struct kms_driver **out);
+
 #endif
diff --git a/libkms/linux.c b/libkms/linux.c
index fc4f205..2de0145 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -115,6 +115,10 @@ linux_from_sysfs(int fd, struct kms_driver **out)
        else if (!strcmp(name, "radeon"))
                ret = radeon_create(fd, out);
 #endif
+#ifdef HAVE_EXYNOS
+       else if (!strcmp(name, "exynos"))
+               ret = exynos_create(fd, out);
+#endif
        else
                ret = -ENOSYS;

diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c
index 5df0a38..449d75f 100644
--- a/tests/kmstest/main.c
+++ b/tests/kmstest/main.c
@@ -61,6 +61,7 @@ char *drivers[] = {
        "radeon",
        "nouveau",
        "vmwgfx",
+       "exynos",
        NULL
 };

-- 
1.7.9.5

---
Hyungwon Hwang
Samsung SWC S/W Platform Team
Smasung Electronics
human.hwang at samsung.com

Reply via email to