lib/igt_debugfs: Remove igt_debugfs_init
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 16 Mar 2014 13:52:32 +0000 (14:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 17 Mar 2014 08:47:50 +0000 (09:47 +0100)
And also move the igt_debugfs_t type out of the headers.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/igt_debugfs.c
lib/igt_debugfs.h

index 948a94c..b109a17 100644 (file)
  * 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;
index c207e01..1618d8e 100644 (file)
 
 #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);