[PATCH 5/5] lib/igt_debugfs: Remove igt_debugfs_init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



And also move the igt_debugfs_t type out of the headers.

Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
---
 lib/igt_debugfs.c | 16 +++++-----------
 lib/igt_debugfs.h | 11 -----------
 2 files changed, 5 insertions(+), 22 deletions(-)

diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 90a57b692643..fe3ec3a55a7d 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -76,6 +76,11 @@
  * General debugfs helpers
  */
 
+typedef struct {
+	char root[128];
+	char dri_path[128];
+} igt_debugfs_t;
+
 static bool __igt_debugfs_init(igt_debugfs_t *debugfs)
 {
 	const char *path = "/sys/kernel/debug";
@@ -110,17 +115,6 @@ find_minor:
 	return false;
 }
 
-/**
- * igt_debugfs_init:
- * @debugfs: debugfs access structure to initialize
- *
- * Initializes the debugfs access helper library.
- */
-void igt_debugfs_init(igt_debugfs_t *debugfs)
-{
-	igt_assert(__igt_debugfs_init(debugfs));
-}
-
 static igt_debugfs_t *__igt_debugfs_singleton(void)
 {
 	static igt_debugfs_t singleton;
diff --git a/lib/igt_debugfs.h b/lib/igt_debugfs.h
index c207e019b193..1618d8e4e833 100644
--- a/lib/igt_debugfs.h
+++ b/lib/igt_debugfs.h
@@ -31,17 +31,6 @@
 
 #include "igt_display.h"
 
-/**
- * igt_debugfs_t:
- *
- * debugfs access structure. Needs to be initialized with igt_debugfs_init().
- */
-typedef struct {
-	char root[128];
-	char dri_path[128];
-} igt_debugfs_t;
-
-void igt_debugfs_init(igt_debugfs_t *debugfs);
 int igt_debugfs_open(const char *filename, int mode);
 FILE *igt_debugfs_fopen(const char *filename,
 			const char *mode);
-- 
1.8.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux